Skip to main content

Docker Swarm (WIP)

On master

docker swarm init

Copy/Paste docker swarm join on all other nodes

docker swarm join --token TOKEN IP_ADDRESS:2377

Create a swarm service

docker service create --name weather-app --publish published=80,target=3000 --replicas=3 weather-app

List Docker services

docker service ls