DCA · Question #55
What is the docker command to setup a swarm?
The correct answer is A. docker swarm init. This question asks for the correct Docker command to set up and initialize a new Docker Swarm.
Question
What is the docker command to setup a swarm?
Options
- Adocker swarm init
- Bdocker swarm create
- Cdocker init swarm
- Ddocker create swarm
How the community answered
(16 responses)- A88% (14)
- C6% (1)
- D6% (1)
Why each option
This question asks for the correct Docker command to set up and initialize a new Docker Swarm.
The `docker swarm init` command is specifically used to initialize a new Docker Swarm on the current node, designating it as the first manager node.
`docker swarm create` is not a valid command for initializing a Docker Swarm.
The command syntax is incorrect; `init` is a subcommand of `docker swarm`, so the order is reversed.
The command syntax is incorrect; `create` is not the correct subcommand for Swarm initialization.
Concept tested: Docker Swarm initialization
Source: https://docs.docker.com/engine/reference/commandline/swarm_init/
Topics
Community Discussion
No community discussion yet for this question.