moby: [1.12.0-rc3] Swarm mode is incompatible with "--cluster-store" config so calico network will not work

Output of docker version:

Docker version 1.12.0-rc3, build 91e29e8, experimental

Output of docker info:

Containers: 3
 Running: 3
 Paused: 0
 Stopped: 0
Images: 4
Server Version: 1.12.0-rc3
Storage Driver: devicemapper
 Pool Name: docker-253:0-852-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop4
 Metadata file: /dev/loop5
 Data Space Used: 1.572 GB
 Data Space Total: 107.4 GB
 Data Space Available: 33.38 GB
 Metadata Space Used: 2.65 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.145 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.107-RHEL7 (2016-06-09)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: host overlay calico bridge null
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 3.10.0-327.22.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 993 MiB
Name: node-01
ID: UMYR:CRAN:APVZ:QPZD:YQMY:WJT6:377C:NBJC:RDAF:2KUM:W54X:IXP2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: true
Cluster Store: etcd://localhost:2379
Cluster Advertise: 192.168.1.55:2376
Insecure Registries:
 127.0.0.0/8

Additional environment details (AWS, VirtualBox, physical, etc.):

Steps to reproduce the issue:

1.Run docker:

[root@node-01 ]# /usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375 --cluster-store etcd://localhost:2379 --cluster-advertise 192.168.1.55:2376

2.Init swarm manager

[root@node-01 ]# docker swarm init

Describe the results you received:

[root@node-01 ]# docker swarm init
Error response from daemon: --cluster-store and --cluster-advertise daemon configurations are incompatible with swarm mode

Describe the results you expected:

I excepted to use calico network(plugin mode) with new swarm feature in docker 1.12, 
but from the received result above, I know that "--cluster-store" and "--cluster-advertise"
is incompatible with swarm mode.  
ps. To use calico network with docker,  "--cluster-store" and "--cluster-advertise"  
are necessary to set when run [docker](https://github.com/projectcalico/calico-containers/blob/master/docs/calico-with-docker/docker-network-plugin/ManualSetup.md#docker).

Additional information you deem important (e.g. issue happens only occasionally):

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

@cirocosta @jolly2 @wrotki @jiaoge @gwanii 1.13 supports network plugins with swarm-mode. Once Calico network plugin is implemented as global-scoped, it will work with docker service. btw, swarm-mode must be first enabled using docker swarm init