Complete the command to initialize Docker Swarm mode on the current machine.
docker swarm [1]The docker swarm init command initializes the current machine as a Swarm manager.
Complete the command to specify the advertise address when initializing Docker Swarm.
docker swarm init --advertise-addr [1]The --advertise-addr option requires the IP address that other nodes will use to connect to this manager.
Fix the error in the command to initialize Docker Swarm with a specific listen address.
docker swarm init --listen-addr [1]The --listen-addr option requires an IP address and port, usually port 2377 for Swarm communication.
Fill both blanks to create a command that initializes Docker Swarm with a specific advertise and listen address.
docker swarm init --advertise-addr [1] --listen-addr [2]
The advertise address is just the IP, while the listen address includes IP and port.
Fill all three blanks to create a command that initializes Docker Swarm with a specific advertise address, listen address, and a custom data path.
docker swarm init --advertise-addr [1] --listen-addr [2] --data-path-port [3]
The --data-path-port option sets the port for overlay network data traffic, default is 4789.