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
Sometimes a network fails to be removed with the following error :
$ docker network rm s_web
Error response from daemon: error while removing network: network s_web id 6b63ee4e95208b6869d072ef45803dbd2b9a517b03b1679c586814a66552f037 has active endpoints
Running docker inspect s_web shows no containers attached. In fact there are no containers at all.
$ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
The only way to delete the network is to restart the docker service and then run the delete command again.
This error appears randomly, so it is fairly hard to reproduce willingly.
Reproduce
docker compose up # compose.yaml in additional info
docker compose down --remove-orphans -v
docker network rm s_web
Expected behavior
The network should be removed
docker version
Client: Docker Engine - Community
Version: 27.0.3
API version: 1.46
Go version: go1.21.11
Git commit: 7d4bcd8
Built: Sat Jun 29 00:04:07 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.0.3
API version: 1.46 (minimum version 1.24)
Go version: go1.21.11
Git commit: 662f78c
Built: Sat Jun 29 00:02:31 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.18
GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
runc:
Version: 1.7.18
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
rootlesskit:
Version: 2.0.2
ApiVersion: 1.1.1
NetworkDriver: slirp4netns
PortDriver: builtin
StateDir: /run/user/1000/dockerd-rootless
slirp4netns:
Version: 1.2.3
GitCommit: c22fde291bb35b354e6ca44d13be181c76a0a432
docker info
Client: Docker Engine - Community
Version: 27.0.3
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.15.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.28.1
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 18
Server Version: 27.0.3
Storage Driver: fuse-overlayfs
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
runc version: v1.1.13-0-g58aa920
init version: de40ad0
Security Options:
seccomp
Profile: builtin
rootless
cgroupns
Kernel Version: 5.14.0-427.22.1.el9_4.x86_64
Operating System: Rocky Linux 9.4 (Blue Onyx)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 11.43GiB
Name: <redacted>
ID: 07ebe6ee-777a-47e0-b6b7-d2ada901fe0e
Docker Root Dir: /home/devroot/.local/share/docker
Debug Mode: false
Username: <redacted>
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpu shares support
WARNING: No cpuset support
WARNING: No io.weight support
WARNING: No io.weight (per device) support
WARNING: No io.max (rbps) support
WARNING: No io.max (wbps) support
WARNING: No io.max (riops) support
WARNING: No io.max (wiops) support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Additional Info
Running docker rootless on Rocky linux.
Same problem seen on multiple servers
Using it as CICD runner, the network is created with docker compose up, and should be removed with docker compose down --remove-orphans -v
Here is the compose.yaml with some redacted values :
Description
Sometimes a network fails to be removed with the following error :
Running
docker inspect s_web
shows no containers attached. In fact there are no containers at all.The only way to delete the network is to restart the docker service and then run the delete command again.
This error appears randomly, so it is fairly hard to reproduce willingly.
Reproduce
docker compose up # compose.yaml in additional info
docker compose down --remove-orphans -v
docker network rm s_web
Expected behavior
The network should be removed
docker version
docker info
Additional Info
Running docker rootless on Rocky linux.
Same problem seen on multiple servers
Using it as CICD runner, the network is created with
docker compose up
, and should be removed withdocker compose down --remove-orphans -v
Here is the compose.yaml with some redacted values :
The text was updated successfully, but these errors were encountered: