Search code examples
dockerdocker-composedocker-swarm

Specify docker network scope in the compose file


What do I put into my compose file used by the docker stack deploy command to replicate the creation of a network using the command docker network create test --scope swarm? So I need to change the scope to swarm for the bridge driver. I've been googling a log but can't find anything.


Solution

  • Well my solution was just to use the overlay driver, it's swarm-scoped by default