LinuxCommandLibrary

docker-swarm

native Docker clustering and orchestration

TLDR

Initialize a swarm

$ docker swarm init
copy
Initialize with advertised address
$ docker swarm init --advertise-addr [ip:port]
copy
Join swarm as worker
$ docker swarm join --token [token] [manager:port]
copy
Get join token
$ docker swarm join-token [worker|manager]
copy
Leave the swarm
$ docker swarm leave
copy
Force leave as manager
$ docker swarm leave --force
copy
Update swarm configuration
$ docker swarm update --autolock=[true]
copy

SYNOPSIS

docker swarm command [options]

DESCRIPTION

docker swarm manages a Docker Swarm cluster. Swarm mode enables native clustering, service orchestration, load balancing, and secure communication between nodes.

SUBCOMMANDS

init

Initialize a swarm.
join
Join a swarm as node.
join-token
Manage join tokens.
leave
Leave the swarm.
update
Update swarm configuration.
ca
Manage swarm CA.
unlock
Unlock swarm.
unlock-key
Manage unlock key.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community