From 75ce75a5c5ac222955da8a2454ce809d9f1ab35d Mon Sep 17 00:00:00 2001 From: mudler Date: Sun, 7 Jun 2015 10:23:54 +0200 Subject: [PATCH] Updating README --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index be78f5a..72222f3 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Ensure to have the daemon started and running: git clone https://github.com/mudler/docker-sabayon-spinbase-amd64.git docker-sabayon-spinbase cd docker-sabayon-spinbase - sudo docker build -t mudler/docker-sabayon-spinbase . + sudo docker build -t sabayon/spinbase-amd64 . ## Pulling sabayon-spinbase from Docker Hub @@ -32,20 +32,25 @@ After pulling the docker image, install [undocker](https://github.com/larsks/und ### Using [docker-squash](https://github.com/jwilder/docker-squash) You can also squash the image with [docker-squash](https://github.com/jwilder/docker-squash) and then extract your layers. - sudo docker save sabayon-spinbase:latest | sudo TMPDIR=/dev/shm docker-squash -t sabayon-spinbase:squashed > /your/prefered/path/Spinbase.tar + sudo docker save sabayon/spinbase-amd64:latest | sudo TMPDIR=/dev/shm docker-squash -t sabayon/spinbase-amd64:squashed > /your/prefered/path/Spinbase.tar You can replace /dev/shm with your prefered tmpdir ### With undocker, but squashing the layers -The squash can also been accomplished creating a container from the image, exporting it and then importing it back. +The squash can also been accomplished creating a container from the image, exporting it and then importing it back. - sudo docker run -t -i sabayon-spinbase:latest /bin/bash + sudo docker run -t -i sabayon/spinbase-amd64:latest /bin/bash $ exit # You should drop in a shell, exit, you should see a container id, otherwise find it : sudo docker ps -l - sudo docker export | docker import - sabayon-spinbase:squashed + sudo docker export | docker import - sabayon/spinbase-amd64:squashed docker save sabayon/spinbase:squashed | undocker -i -o spinbase sabayon/spinbase:squashed Docker will loose the history revision and then you can estract the layer, using as base for chroot. You now have the tree on the *spinbase/* directory + +If you are planning to use the resulting files as a chroot, don't forget to set a nameserver on resolv.conf file + + echo "nameserver 208.67.222.222" > spinbase/etc/resolv.conf +