Bird
0
0

Given the following Docker Swarm overlay network creation command:

medium📝 Command Output Q13 of 15
Docker - Swarm
Given the following Docker Swarm overlay network creation command:
docker network create -d overlay --attachable mynet

What does the --attachable flag do?
ALimits the network to only swarm services
BPrevents services from using the network
CAllows standalone containers to connect to the overlay network
DAutomatically attaches volumes to containers
Step-by-Step Solution
Solution:
  1. Step 1: Understand the --attachable flag

    The --attachable flag allows standalone containers (not part of swarm services) to connect to the overlay network.
  2. Step 2: Analyze options

    Prevents services from using the network is false because it does not prevent services. Limits the network to only swarm services is opposite of what attachable does. Automatically attaches volumes to containers is unrelated to networks.
  3. Final Answer:

    Allows standalone containers to connect to the overlay network -> Option C
  4. Quick Check:

    --attachable = standalone container access [OK]
Quick Trick: Attachable lets normal containers join overlay networks [OK]
Common Mistakes:
  • Thinking --attachable restricts network to swarm services
  • Confusing attachable with volume or storage options
  • Assuming it disables service connections

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes