A swarm is a number of Docker Engines (or nodes) that deploy services collectively. Swarm is used to distribute processing across many physical, virtual or cloud machines.
Initialize a swarm: docker swarm init [OPTIONS]
Join a swarm as a node and/or manager: docker swarm join [OPTIONS] HOST:PORT
Create a new service: docker service create [OPTIONS] IMAGE [COMMAND] [ARG...]
Display detailed information on one or more services: docker service inspect [OPTIONS] SERVICE [SERVICE...]
List services: docker service ls [OPTIONS]
Remove one or more services: docker service rm SERVICE [SERVICE...]
Scale one or multiple replicated services: docker service scale SERVICE=REPLICAS [SERVICE=REPLICAS...]
List the tasks of one or more services: docker service ps [OPTIONS] SERVICE [SERVICE...]
Update a service: docker service update [OPTIONS] SERVICE
Swarm mode implements the following features:
For more official Docker documentation regarding Swarm visit: Swarm mode overview
Click on commands description for documentation
docker swarm init [OPTIONS]
Join a swarm as a node and/or manager
docker swarm join [OPTIONS] HOST:PORT
docker service create [OPTIONS] IMAGE [COMMAND] [ARG...]
Display detailed information on one or more services
docker service inspect [OPTIONS] SERVICE [SERVICE...]
docker service ls [OPTIONS]
docker service rm SERVICE [SERVICE...]
Scale one or multiple replicated services
docker service scale SERVICE=REPLICAS [SERVICE=REPLICAS...]
List the tasks of one or more services
docker service ps [OPTIONS] SERVICE [SERVICE...]
docker service update [OPTIONS] SERVICE