Benutzer-Werkzeuge

Webseiten-Werkzeuge


ne:docker

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
ne:docker [2016/04/06 10:09] – [Networking] adminne:docker [2024/04/02 06:35] (aktuell) – [Docker] admin
Zeile 1: Zeile 1:
 ====== Docker ====== ====== 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 ==== ==== Docker unter Ubuntu 14.04 LTS installieren ====
  
- +https://docs.docker.com/engine/installation/linux/ubuntulinux/
-=== Add the Docker repository key to your local keychain === +
- +
-  $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 +
- +
-=== Add the Docker repository to your apt sources list, update and install the lxc-docker package: === +
- +
-  $ sudo sh -c "echo deb https://get.docker.com/ubuntu docker main\ +
-  > /etc/apt/sources.list.d/docker.list" +
- +
-  $ sudo apt-get update +
-  $ sudo apt-get install lxc-docker +
  
  
Zeile 51: Zeile 40:
  
   $ sudo docker run -t -i ubuntu bash   $ sudo docker run -t -i ubuntu bash
 +  
 +==== Dockerfiles ====
 +
 + * [[ne:Docker:dockerfiles|Dockerfiles]]
 +
 +
  
 ==== Networking ==== ==== Networking ====
Zeile 61: Zeile 56:
   $ sudo docker run -t -i --privileged=true contiki bash   $ 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://blog.codecentric.de/en/2014/01/docker-networking-made-simple-3-ways-connect-lxc-containers/
  
-http://www.opencontrail.org/docker-with-opencontrail/+  * 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: ==== ==== Vagrant: ====
  
 http://www.rubyinside.com/vagrant-ruby-powered-virtualbox-vm-building-and-provisioning-3059.html http://www.rubyinside.com/vagrant-ruby-powered-virtualbox-vm-building-and-provisioning-3059.html
 +
 +==== Rezept: ====
 +
 +<code bash>
 +1)  docker run -t -i ubuntu bash
 +2)  apt-get install this and that
 +3)  docker commit <containerid> <imagename> 
 +4)  docker run <imagename> bash
 +5)  git clone git://.../mycode
 +6)  pip install -r requirements.txt
 +7)  docker commit <containerid> <imagename> 
 +8)  repeat steps 4-7 as necessary
 +9)  docker tag <imagename> <user/image>
 +10) docker push <user/image>
 +</code>
  
 ===== Links: ===== ===== Links: =====
Zeile 74: Zeile 89:
 https://github.com/wsargent/docker-cheat-sheet https://github.com/wsargent/docker-cheat-sheet
  
-http://blog.tutum.co/2014/11/05/how-to-use-docker-on-windows/ +=== 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/+
  
-http://nathanleclaire.com/blog/2014/07/12/10-docker-tips-and-tricks-that-will-make-you-sing-a-whale-song-of-joy/+  * 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/
  
-http://askubuntu.com/questions/505506/docker-how-to-get-bash-ssh-inside-runned-container-run-d+=== Stuff===
  
-http://stackoverflow.com/questions/19585028/i-lose-my-data-when-the-container-exits 
  
-http://blog.docker.com/2014/04/docker-in-education-interview/+  * 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/
ne/docker.1459937397.txt.gz · Zuletzt geändert: 2017/01/24 18:49 (Externe Bearbeitung)