Merge pull request #748 from runcom/readme
README.md: simplify Docker image example
This commit is contained in:
commit
d1e0015032
|
@ -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:
|
To test using Docker's `busybox` image follow these steps:
|
||||||
* Install `docker` and download the `busybox` image: `docker pull busybox`
|
* Install `docker` and download the `busybox` image: `docker pull busybox`
|
||||||
* Create a container from that image and export its contents to a tar file:
|
* Create a container from that image and export its contents in a directory:
|
||||||
`docker export $(docker create busybox) > busybox.tar`
|
|
||||||
* Untar the contents to create your filesystem directory:
|
|
||||||
```
|
```
|
||||||
mkdir rootfs
|
mkdir rootfs
|
||||||
tar -C rootfs -xf busybox.tar
|
docker export $(docker create busybox) | tar -C rootfs -xvf -
|
||||||
```
|
```
|
||||||
* Create `config.json` by using `runc spec`.
|
* Create `config.json` by using `runc spec`.
|
||||||
* Execute `runc start` and you should be placed into a shell where you can run `ps`:
|
* Execute `runc start` and you should be placed into a shell where you can run `ps`:
|
||||||
|
|
Loading…
Reference in New Issue