README.md: simplify Docker image example

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-04-13 16:54:06 +02:00
parent 942d0cf03f
commit 18f60ae906
1 changed files with 2 additions and 4 deletions

View File

@ -90,12 +90,10 @@ It assumes that the file-system is found in a directory called
To test using Docker's `busybox` image follow these steps:
* Install `docker` and download the `busybox` image: `docker pull busybox`
* Create a container from that image and export its contents to a tar file:
`docker export $(docker create busybox) > busybox.tar`
* Untar the contents to create your filesystem directory:
* Create a container from that image and export its contents in a directory:
```
mkdir rootfs
tar -C rootfs -xf busybox.tar
docker export $(docker create busybox) | tar -C rootfs -xvf -
```
* Create `config.json` by using `runc spec`.
* Execute `runc start` and you should be placed into a shell where you can run `ps`: