====== Docker ====== * :!: benötigt 64-bit Ubuntu (''uname -a'': x86_64) * Docker Container beendet sich selbst: https://stackoverflow.com/questions/28212380/why-docker-container-exits-immediately ==== Docker unter Ubuntu 14.04 LTS installieren ==== https://docs.docker.com/engine/installation/linux/ubuntulinux/ ==== Docker unter Ubuntu 14.04 LTS betreiben ==== === Docker Installation prüfen === $ sudo docker info $ sudo docker version === Docker Verzeichnis – hier liegt alles === $ sudo ls -l /var/lib/docker/ == Docker Usage anzeigen lassen == $ sudo docker == Ein fertiges Image aus dem Docker Index ziehen == $ sudo docker pull ubuntu == Alle lokalen Images auflisten == $ sudo docker images Einen Container erzeugen, Applikation „/bin/echo“ laufen lassen und am Ende den # Container wieder entfernen $ sudo docker run --rm ubuntu \ /bin/echo „Hello World“ $ sudo docker run -t -i ubuntu bash ==== Dockerfiles ==== * [[ne:Docker:dockerfiles|Dockerfiles]] ==== Networking ==== == Startet Docker im privilegierten Modus: == wird benötigt um das Tap-Interface zu erzeugen $ sudo docker run -t -i --privileged=true contiki bash * https://blog.codecentric.de/en/2014/01/docker-networking-made-simple-3-ways-connect-lxc-containers/ * https://github.com/socketplane/socketplane * http://cloudgeekz.com/450/experimenting-with-socketplane-for-docker.html * https://blog.docker.com/2015/04/docker-networking-takes-a-step-in-the-right-direction-2/ * https://blog.docker.com/2016/03/docker-networking-design-philosophy/ * https://github.com/jpetazzo/pipework * http://www.opencontrail.org/docker-with-opencontrail/ ==== Vagrant: ==== http://www.rubyinside.com/vagrant-ruby-powered-virtualbox-vm-building-and-provisioning-3059.html ==== Rezept: ==== 1) docker run -t -i ubuntu bash 2) apt-get install this and that 3) docker commit 4) docker run bash 5) git clone git://.../mycode 6) pip install -r requirements.txt 7) docker commit 8) repeat steps 4-7 as necessary 9) docker tag 10) docker push ===== Links: ===== https://github.com/wsargent/docker-cheat-sheet === Windows === * http://blog.tutum.co/2014/11/05/how-to-use-docker-on-windows/ * https://docs.docker.com/installation/windows/ * http://azure.microsoft.com/blog/2014/11/18/docker-cli-for-windows-clients/ * https://ahmetalpbalkan.com/blog/compiling-docker-cli-on-windows/ === Stuff: === * http://nathanleclaire.com/blog/2014/07/12/10-docker-tips-and-tricks-that-will-make-you-sing-a-whale-song-of-joy/ * http://askubuntu.com/questions/505506/docker-how-to-get-bash-ssh-inside-runned-container-run-d * http://stackoverflow.com/questions/19585028/i-lose-my-data-when-the-container-exits * http://blog.docker.com/2014/04/docker-in-education-interview/