Bird
0
0

You initialized a swarm on a node but want to reset it to join another swarm. Which command should you run?

hard📝 Application Q9 of 15
Docker - Swarm
You initialized a swarm on a node but want to reset it to join another swarm. Which command should you run?
Adocker swarm leave --force
Bdocker swarm reset
Cdocker swarm stop
Ddocker swarm remove
Step-by-Step Solution
Solution:
  1. Step 1: Identify command to leave swarm forcibly

    docker swarm leave --force removes the node from the swarm and resets swarm state.
  2. Step 2: Check other options

    No valid commands named reset, stop, or remove exist for swarm.
  3. Final Answer:

    docker swarm leave --force -> Option A
  4. Quick Check:

    Force leave resets swarm state [OK]
Quick Trick: Use leave --force to reset swarm state [OK]
Common Mistakes:
  • Using non-existent commands
  • Not forcing leave on manager nodes
  • Confusing leave with stop

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes