카타코더 Docker - Docker Swarm Mode Playground

1 개요[ | ]

카타코더 Docker
# 🔗 제목
카타코더 Docker/2 e
🡵 카타코더 Docker - Manage Container Log Files
🡵 카타코더 Docker - Ensuring Container Uptime With Restart Policies
🡵 카타코더 Docker - Adding Docker Metadata & Labels
🡵 카타코더 Docker - Load Balancing Containers
🡵 카타코더 Docker - Orchestration using Docker Compose
🡵 카타코더 Docker - See Container Metrics With Docker Stats
🡵 카타코더 Docker - Creating Optimised Docker Images using Multi-Stage Builds
🡵 카타코더 Docker - Formatting PS Output
🡵 카타코더 Docker - Run Docker From Rootless Users
🡵 카타코더 Docker - Learn Docker Swarm 101
🡵 카타코더 Docker - Docker Swarm Mode Playground

2 Initialize[ | ]

host01
root@host01:~# docker swarm init
Swarm initialized: current node (r33j7333y2v6kxzriw3ul414l) is now a manager.

To add a worker to this swarm, run the following command:

    docker swarm join --token SWMTKN-1-0i7zx5aaimas6ha5u71b1brfxc897f8nd3l5qabevpmg4kxgud-1ysky1qgxg3wbivn55e8h1lbb 172.17.0.28:2377

To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.

3 Join[ | ]

host02
root@host02:~# token=$(docker -H 172.17.0.28:2345 swarm join-token -q worker)
root@host02:~# echo $token
SWMTKN-1-0i7zx5aaimas6ha5u71b1brfxc897f8nd3l5qabevpmg4kxgud-1ysky1qgxg3wbivn55e8h1lbb
root@host02:~# docker swarm join 172.17.0.28:2377 --token $token
This node joined a swarm as a worker.

4 Create Overlay Network[ | ]

host01
root@host01:~# docker network create -d overlay skynet
gwxfjxt7hdgl2v2er23eh1h0z

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}