Docker: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(59 dazwischenliegende Versionen von 9 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
=dockers installieren=
+
*[[Was ist Docker?]]
*root@tac:~# apt-get install docker.io
+
*[[Docker Installation]]
 
+
*[[Docker Basics]]
=image laden=
+
*[[docker-swarm]]
*root@tac:~# docker pull ubuntu:10.04
+
*[[Dockerfile]]
 
+
*[[Docker Image bauen]]
=image listen=
+
*[[Docker Image hochladen]]
*root@tac:~# docker images
+
*[[Docker Docker Hub]]
REPOSITORY          TAG                IMAGE ID            CREATED            VIRTUAL SIZE
+
*[[Docker old Stuff]]
ubuntu              12.04              1f80e9ca2ac3        8 days ago          131.5 MB
+
*[[Docker Windows]]
ubuntu              10.04              3db9c44f4520        10 months ago      183 MB
+
*[[Docker Traefik]]
=perstitent starten des containers mit dem namen humppa=
+
*[[Docker Nginx Proxy Manager]]
*root@tac:~# docker run -t -i -p 880:80 --name humppa  ubuntu:10.04 bash
+
*[[Docker Rocky]]
==in der maschine==
+
*[[Docker cleanen]]
*root@64f3a5281e7e:/# cat /etc/issue
+
*[[docker-compose Beispiele]]
Ubuntu 10.04 LTS \n \l
 
*root@64f3a5281e7e:/# exit
 
 
 
*docker start -i ubuntu_persistent
 
*root@tac:~# docker start -i humppa
 
humppa
 
*root@64f3a5281e7e:/#
 
==apache2 installieren==
 
*root@64f3a5281e7e:/# apt-get update
 
*root@64f3a5281e7e:/# apt-get install apache2
 
*root@64f3a5281e7e:/# echo ServerName humppa >> /etc/apache2/apache2.conf
 
*root@64f3a5281e7e:/# service apache2 restart
 
==netstat listing==
 
*root@64f3a5281e7e:/# netstat -lntp
 
Active Internet connections (only servers)
 
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
 
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -
 
==container verlassen==
 
*root@64f3a5281e7e:/# exit
 
 
 
=wieder auf dem host=
 
*root@tac:~#
 
=container anzeigen=
 
*root@tac:~# docker ps -a
 
CONTAINER ID        IMAGE              COMMAND            CREATED            STATUS                      PORTS              NAMES
 
64f3a5281e7e        ubuntu:10.04        bash                29 minutes ago      Exited (130) 2 seconds ago                      humppa
 
=container löschen=
 
*root@tac:~# docker rm 64f3a5281e7e
 
64f3a5281e7e
 
=container verlassen=
 
*CTRL+P danache CTRL+Q
 
=container wieder betreten=
 
*root@tac:~# docker attach 64f3a5281e7e
 
 
 
=port forwarding=
 
 
 
  
 
=beispiele=
 
=beispiele=
 +
*[[docker container]]
 
*[[docker bind9]]
 
*[[docker bind9]]
 +
*[[docker bind9 und ssh]]
 +
*[[mysql und mediawiki]]
 +
 +
=Traefik=
 +
*[[Traefik]]
  
 
=links=
 
=links=
 +
*https://www.digitalocean.com/community/tutorials/how-to-create-and-run-a-service-on-a-coreos-cluster
 +
 +
*http://www.linux-magazin.de/NEWS/Docker-1.2.0-mit-Policy-fuer-Neustarts
  
 
*https://docs.docker.com/articles/networking/
 
*https://docs.docker.com/articles/networking/
Zeile 63: Zeile 36:
 
;wichtig
 
;wichtig
 
*http://stackoverflow.com/questions/25135897/how-to-automatically-start-a-service-when-running-a-docker-container
 
*http://stackoverflow.com/questions/25135897/how-to-automatically-start-a-service-when-running-a-docker-container
;vodoo of entrypoint :-)
+
vodoo of entrypoint :-)
 
*http://stackoverflow.com/questions/21553353/what-is-the-difference-between-cmd-and-entrypoint-in-a-dockerfile
 
*http://stackoverflow.com/questions/21553353/what-is-the-difference-between-cmd-and-entrypoint-in-a-dockerfile
 +
; mehrere dienste parallel starten
 +
*https://docs.docker.com/articles/using_supervisord/
 +
 +
*https://blog.codecentric.de/2014/01/leichtgewichtige-virtuelle-maschinen-mit-docker-oder-wie-man-100-vms-laufen/

Aktuelle Version vom 9. Mai 2025, 07:37 Uhr