Linux command
docker-swarm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize a swarm
docker swarm init
Initialize with advertised address
docker swarm init --advertise-addr [ip:port]
Join swarm as worker
docker swarm join --token [token] [manager:port]
Get join token
docker swarm join-token [worker|manager]
Leave the swarm
docker swarm leave
Force leave as manager
docker swarm leave --force
Update swarm configuration
docker swarm update --autolock=[true]
说明
docker swarm manages a Docker Swarm cluster. Swarm mode enables native clustering, service orchestration, load balancing, and secure communication between nodes.
FAQ
What is the docker-swarm command used for?
docker swarm manages a Docker Swarm cluster. Swarm mode enables native clustering, service orchestration, load balancing, and secure communication between nodes.
How do I run a basic docker-swarm example?
Run `docker swarm init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more docker-swarm examples?
This page includes 7 examples for docker-swarm, plus related commands for nearby Linux tasks.