Docker.github.io: Networking in Compose - Default driver in swarm mode

Created on 28 Jan 2017  路  3Comments  路  Source: docker/docker.github.io

Problem description

The _Networking in Compose_ page mentions that:

The cluster will use the overlay driver by default, but you can specify it explicitly if you prefer - see below for how to do this.

I have a Docker 1.13.0 installation in swarm mode and it seems that bridge is the default network driver. I could not find any reference on the default driver in Docker.

> docker-compose up -d
WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use `docker stack deploy`.

Creating network "foo_default" with the default driver
Creating scidbdocker_bar_1
> docker network ls
NETWORK ID          NAME                  DRIVER              SCOPE
b9653fe43369        bridge                bridge              local
f111200c51a0        docker_gwbridge       bridge              local
a0bdd5df7a75        host                  host                local
6u4dleo7zzmn        ingress               overlay             swarm
e9de752139c3        none                  null                local
66505aa0823a        foo_default           bridge              local

Problem location

Project version(s) affected

Docker 1.13.0
Docker Compose 1.10.0

areCompose

Most helpful comment

That document is referring to https://github.com/docker/swarm, not swarm mode. docker-compose doesn't work directly with Swarm mode (as it says in the warning), you have to go through docker stack deploy.

All 3 comments

@rvernica There is info starting here on the default bridge network: https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/

But I'm going to need help on answering this from @dnephin , @shin- , @thaJeztah , @ManoMarks . Can you guys respond?

That document is referring to https://github.com/docker/swarm, not swarm mode. docker-compose doesn't work directly with Swarm mode (as it says in the warning), you have to go through docker stack deploy.

I'll take a look / claim this :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnthagen picture johnthagen  路  3Comments

londoncalling picture londoncalling  路  5Comments

MicheleMannino picture MicheleMannino  路  4Comments

Bharathkumarraju picture Bharathkumarraju  路  3Comments

mdlinville picture mdlinville  路  3Comments