moby: 1.13rc1: Cannot create containers with overlay network in docker swarm mode
Description
Cannot create a docker container using docker run --net=some-net
where some-net
is a overlay network created in docker swarm mode.
Steps to reproduce the issue:
docker swarm init
docker network create --driver=overlay some-net"
docker run --net=some-net -d any/image
Describe the results you received:
docker: Error response from daemon: Could not attach to network qiot-dev: rpc error: code = 7 desc = network some-net not manually attachable.
Describe the results you expected: I did expect the container to start normally and be able to reach it from services and/or other containers attached to the overlay network.
https://github.com/docker/docker/issues/23901 https://github.com/docker/docker/pull/25962
Additional information you deem important (e.g. issue happens only occasionally): Always reproducible.
Output of docker version
:
Client:
Version: 1.13.0-rc1
API version: 1.25
Go version: go1.7.3
Git commit: 75fd88b
Built: Fri Nov 11 22:32:34 2016
OS/Arch: darwin/amd64
Server:
Version: 1.13.0-rc1
API version: 1.25
Minimum API version: 1.12
Go version: go1.7.3
Git commit: 75fd88b
Built: Fri Nov 11 19:47:07 2016
OS/Arch: linux/amd64
Experimental: false
Output of docker info
:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 2
Server Version: 1.13.0-rc1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 16
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: active
NodeID: a5ccrk6mnsneceaf5rjeaq269
Is Manager: true
ClusterID: 7t448hjt5mld2ccb1x7lgsezd
Managers: 1
Nodes: 3
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: 10.0.0.86
Manager Addresses:
10.0.0.86:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8517738ba4b82aff5662c97ca4627e7e4d03b531
runc version: ac031b5bf1cc92239461125f4c1ffb760522bbf2
init version: N/A (expected: v0.13.0)
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-47-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.952 GiB
Name: qiot-dev-n0
ID: 2W6D:2RGQ:7JFL:VCWO:EZ7K:AFID:EMO4:ZXCY:MJPW:QLY7:2SRL:HALW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: gprivitera
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Labels:
provider=amazonec2
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, VirtualBox, physical, etc.): Using AWS.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (8 by maintainers)
This should be fixed by https://github.com/docker/libnetwork/pull/1545