Last active
December 20, 2015 16:49
-
-
Save thieso2/6164044 to your computer and use it in GitHub Desktop.
some docker stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # remove all images | |
| $ docker rmi `docker images |sort -r| grep -v "^REPOSITORY" | awk '{print $3}'` | |
| # remove all containers | |
| $ docker rm `docker ps -a | awk '{print $1}'` | |
| # min ubuntu image | |
| $ mkdir /home/vagrant/new | |
| $ debootstrap --variant=minbase --arch=amd64 precise /home/vagrant/new http://192.168.1.50:3142/ubuntu | |
| $ cd /home/vagrant/new | |
| $ tar cvfz ../min.tgz . | |
| $ cat > Dockerfile | |
| from scratch | |
| add min.tgz / | |
| ^D | |
| $ docker build -t "u1204min" . | |
| $ docker run -i -t u1204min /bin/bash | |
| HA! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment