From 18f60ae906c68008b156974e51d7c65d0aaca823 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 13 Apr 2016 16:54:06 +0200 Subject: [PATCH] README.md: simplify Docker image example Signed-off-by: Antonio Murdaca --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1e6e503a9..98dc67fc5 100644 --- a/README.md +++ b/README.md @@ -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`: