You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On host-2 wait until task is started and inspect the network with docker network inspect test_net. The network has not the subnet as specified during the create on the manager node.
Creating a swarm scoped bridge network with a subnet, e.g. 10.43.0.0/16, results in a bridge network with another subnet on the worker nodes.
Describe the results you expected:
The created bridge network on the workers should have the same subnet as specified on the master node.
Implementation analysis:
During the creation of the agent network here, docker uses the IPAM settings of the network struct. Accordingly to the comment here this is the "Runtime state of the IPAM options". As the network is not currently running this should be nil and results in creating a network with the default options.
Shouldn't docker use the IPAM options from the Network.Spec instead?
Output of docker version:
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.2
Git commit: 0520e24
Built: Wed Mar 21 23:05:52 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:14:54 2018
OS/Arch: linux/amd64
Experimental: false
Description
A swarm scoped bridge network with IPAM configs (e.g. --subnet) get created on the worker without the correct IPAM configs.
Steps to reproduce the issue:
Build a docker swarm (swarm-kit swarm) consisting of one manager (
host-1
) and one worker node (host-2
).On
host-1
create a bridge network in swarm scopeOn
host-1
create a test service,docker stack deploy -c test.yml test
using the following yaml file.host-2
wait until task is started and inspect the network withdocker network inspect test_net
. The network has not the subnet as specified during the create on the manager node.Describe the results you received:
Creating a swarm scoped bridge network with a subnet, e.g.
10.43.0.0/16
, results in a bridge network with another subnet on the worker nodes.Describe the results you expected:
The created bridge network on the workers should have the same subnet as specified on the master node.
Implementation analysis:
During the creation of the agent network here, docker uses the
IPAM
settings of thenetwork
struct. Accordingly to the comment here this is the "Runtime state of the IPAM options". As the network is not currently running this should benil
and results in creating a network with the default options.Shouldn't docker use the IPAM options from the
Network.Spec
instead?Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: