Bird
0
0

Which Docker CLI command is used to start a new Swarm cluster on the current host?

easy📝 Syntax Q3 of 15
Docker - Swarm
Which Docker CLI command is used to start a new Swarm cluster on the current host?
Adocker cluster create
Bdocker swarm start
Cdocker swarm init
Ddocker service init
Step-by-Step Solution
Solution:
  1. Step 1: Recall Docker Swarm initialization command

    The correct command to initialize a Swarm cluster is 'docker swarm init'.
  2. Step 2: Eliminate incorrect options

    'docker swarm start' and 'docker cluster create' are invalid commands; 'docker service init' does not exist.
  3. Final Answer:

    docker swarm init -> Option C
  4. Quick Check:

    Swarm cluster starts with 'docker swarm init' [OK]
Quick Trick: 'docker swarm init' starts the cluster [OK]
Common Mistakes:
  • Using 'docker swarm start' which is not a valid command
  • Confusing service commands with cluster initialization

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes