Bird
0
0

A user tries to run docker node promote worker1 on a worker node and gets an error. Why?

medium📝 Troubleshoot Q7 of 15
Docker - Swarm
A user tries to run docker node promote worker1 on a worker node and gets an error. Why?
AThe command syntax is incorrect
BThe node name 'worker1' does not exist
CWorker nodes cannot be promoted to managers
DOnly manager nodes can run 'docker node promote'
Step-by-Step Solution
Solution:
  1. Step 1: Understand command permissions

    'docker node promote' must be run on a manager node, not a worker node.
  2. Step 2: Reason about error cause

    Running the command on a worker node causes permission error because only managers manage nodes.
  3. Final Answer:

    Only manager nodes can run 'docker node promote' -> Option D
  4. Quick Check:

    Node promotion command runs only on managers [OK]
Quick Trick: Promote nodes only from manager nodes [OK]
Common Mistakes:
  • Trying to promote from worker nodes
  • Assuming command syntax is wrong

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes