Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
playground:about:dockerbeschreibung [2024/10/22 15:09] 217.7.196.21 [Arbeiten mit Docker-Compose] |
playground:about:dockerbeschreibung [2025/04/23 20:14] (aktuell) 85.190.254.48 alte Version wiederhergestellt (2025/04/20 08:53) |
||
|---|---|---|---|
| Zeile 131: | Zeile 131: | ||
| ================================================================================ | ================================================================================ | ||
| </ | </ | ||
| + | |||
| + | ===== docker run oder docker swarm mein-stack ===== | ||
| + | Um die images in ein gemeinsames Netzwerk über eine yml Datei zu bekommen | ||
| + | '' | ||
| + | |||
| + | <code yml docker-compose.yml> | ||
| + | services: | ||
| + | portainer: | ||
| + | image: portainer/ | ||
| + | ports: | ||
| + | - 9000: | ||
| + | volumes: | ||
| + | - / | ||
| + | - ./ | ||
| + | restart: always | ||
| + | networks: | ||
| + | - mein-netzwerk | ||
| + | |||
| + | webapps: | ||
| + | image: nginx | ||
| + | ports: | ||
| + | - 80:80 | ||
| + | networks: | ||
| + | - mein-netzwerk | ||
| + | |||
| + | networks: | ||
| + | mein-netzwerk: | ||
| + | driver: overlay | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | Es starten alle Container | ||
| + | |||
| + | < | ||
| + | spiral@intrepid: | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | 10-listen-on-ipv6-by-default.sh: | ||
| + | 10-listen-on-ipv6-by-default.sh: | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: using the " | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: nginx/ | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: OS: Linux 6.5.0-0.deb12.1-amd64 | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: getrlimit(RLIMIT_NOFILE): | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: start worker processes | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: start worker process 29 | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: start worker process 30 | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: start worker process 31 | ||
| + | 2024/10/22 13:54:05 [notice] 1#1: start worker process 32 | ||
| + | |||
| + | |||
| + | 172.17.0.1 - - [22/ | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: signal 3 (SIGQUIT) received, shutting down | ||
| + | 2024/10/22 13:54:57 [notice] 29#29: gracefully shutting down | ||
| + | 2024/10/22 13:54:57 [notice] 29#29: exiting | ||
| + | 2024/10/22 13:54:57 [notice] 29#29: exit | ||
| + | 2024/10/22 13:54:57 [notice] 30#30: gracefully shutting down | ||
| + | 2024/10/22 13:54:57 [notice] 30#30: exiting | ||
| + | 2024/10/22 13:54:57 [notice] 30#30: exit | ||
| + | 2024/10/22 13:54:57 [notice] 31#31: gracefully shutting down | ||
| + | 2024/10/22 13:54:57 [notice] 31#31: exiting | ||
| + | 2024/10/22 13:54:57 [notice] 31#31: exit | ||
| + | 2024/10/22 13:54:57 [notice] 32#32: gracefully shutting down | ||
| + | 2024/10/22 13:54:57 [notice] 32#32: exiting | ||
| + | 2024/10/22 13:54:57 [notice] 32#32: exit | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: signal 17 (SIGCHLD) received from 30 | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: worker process 30 exited with code 0 | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: signal 29 (SIGIO) received | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: signal 17 (SIGCHLD) received from 31 | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: worker process 31 exited with code 0 | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: signal 29 (SIGIO) received | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: signal 17 (SIGCHLD) received from 29 | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: worker process 29 exited with code 0 | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: signal 29 (SIGIO) received | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: signal 17 (SIGCHLD) received from 32 | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: worker process 32 exited with code 0 | ||
| + | 2024/10/22 13:54:57 [notice] 1#1: exit | ||
| + | spiral@intrepid: | ||
| + | spiral@intrepid: | ||
| + | spiral@intrepid: | ||
| + | Swarm initialized: | ||
| + | |||
| + | To add a worker to this swarm, run the following command: | ||
| + | |||
| + | docker swarm join --token SWMTKN-1-49t76nd6xhv8786fpsdfajlqrri3ew1ws1gsb709y0x0pyai5p-dwyo3e3o830xz6a4ofvt4l1y3 192.168.142.242: | ||
| + | |||
| + | To add a manager to this swarm, run ' | ||
| + | |||
| + | spiral@intrepid: | ||
| + | Ignoring unsupported options: restart | ||
| + | |||
| + | Since --detach=false was not specified, tasks will be created in the background. | ||
| + | In a future release, --detach=false will become the default. | ||
| + | Creating network mein-stack_mein-netzwerk | ||
| + | Creating service mein-stack_portainer | ||
| + | Creating service mein-stack_webapps | ||
| + | |||
| + | spiral@intrepid: | ||
| + | CONTAINER ID | ||
| + | f123b82e0ea1 | ||
| + | a8dc78fc7d49 | ||
| + | </ | ||
| + | |||
| < | < | ||