Docker Community Forums

Share and learn in the Docker community.

Active endpoints but network shows no containers


(Ianbr) #1

Hi All,

I am trying to delete an overlay network but receive the error about active endpoints.
But when I inspect the network it shows no containers.
Can someone point me in the right direction as to how to remove this network?

Thanks

Ian

Here is my docker info and the results of trying to delete the network.

docker info

Containers: 27
Running: 27
Paused: 0
Stopped: 0
Images: 34
Server Version: 17.12.0-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 798
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-112-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.784GiB
Name: swarm-node-1
ID: YB2B:FPXG:QPHX:5RO2:TID3:VJEE:4K44:TJO4:ZZ6K:Y2TF:KXMQ:WWMP
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
name=swarm-node-1
Experimental: false
Cluster Store: etcd://localhost:2379/store
Cluster Advertise: 10.80.120.13:2376
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

docker version

Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:11:19 2017
OS/Arch: linux/amd64

Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:09:53 2017
OS/Arch: linux/amd64
Experimental: false

docker network ls

NETWORK ID NAME DRIVER SCOPE
f1f78d04169d bridge bridge local
aaab280eed68 docker_gwbridge bridge local
17ae3110615b host host local
c7754223df9b none null local
4058179f3ce7 srvpln28-network overlay global
f0fc54bbaec7 srvpln37-network overlay global
33f97198c772 srvpln38-network overlay global
38ccee45c189 srvpln39-network overlay global

docker network rm srvpln38-network

Error response from daemon: network srvpln38-network id 33f97198c7720ed46948ecdd87235bf904fd5996fbf492440247f1f03461cd05 has active endpoints

docker network inspect srvpln38-network

[
{
“Name”: “srvpln38-network”,
“Id”: “33f97198c7720ed46948ecdd87235bf904fd5996fbf492440247f1f03461cd05”,
“Created”: “2018-08-13T14:53:39.592873892Z”,
“Scope”: “global”,
“Driver”: “overlay”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “10.0.2.0/24”,
“Gateway”: “10.0.2.1”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {},
“Options”: {},
“Labels”: {}
}
]