Bird
0
0

Which command is used to add a new worker node to an existing Docker swarm?

easy📝 Conceptual Q2 of 15
Docker - Swarm
Which command is used to add a new worker node to an existing Docker swarm?
Adocker swarm join --token <worker_token> <manager_ip>:2377
Bdocker swarm init --worker
Cdocker node add worker
Ddocker swarm create worker
Step-by-Step Solution
Solution:
  1. Step 1: Recall how to join a worker node

    Worker nodes join a swarm using the 'docker swarm join' command with a worker token and manager IP.
  2. Step 2: Evaluate options

    Only docker swarm join --token :2377 uses the correct syntax and parameters to join as a worker node.
  3. Final Answer:

    docker swarm join --token <worker_token> <manager_ip>:2377 -> Option A
  4. Quick Check:

    Joining worker node = docker swarm join with token [OK]
Quick Trick: Use 'docker swarm join' with worker token to add workers [OK]
Common Mistakes:
  • Using 'docker swarm init' to add workers
  • Incorrect command syntax for joining nodes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes