docker-compose false negatives
Description
After downing containers with docker-compose down --remove-orphans, the next up or run usually works out fine, but sometimes it fails. I suspect this is due to some sort of data race.
This can be a container or a related network. Sometimes, when a container is being upped for the first time, it fails with no details. The following text is an example of the default network failing.
Error response from daemon: network aurweb_default not found
The next subsequent run of the same exact command normally works out. This is pretty consistent though, it seems to be based on intervals or health checks that it's not actually waiting for.
Steps to reproduce the issue:
- Run
docker-compose run <your_service> - Hope that data races cause the issue.
Describe the results you received:
Error response from daemon: network aurweb_default not found
Describe the results you expected:
The containers to run without error.
Additional information you deem important (e.g. issue happens only occasionally):
I suspect this is some sort of data race.
Output of docker compose version:
Docker Compose version 2.2.3
Output of docker info:
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
compose: Docker Compose (Docker Inc., 2.2.3)
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 28
Server Version: 20.10.12
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: false
userxattr: false
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 logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 39259a8f35919a0d02c9ecc2871ddd6ccf6a7c6e.m
runc version: v1.1.0-0-g067aaf85
init version: de40ad0
Security Options:
seccomp
Profile: default
cgroupns
Kernel Version: 5.16.2-arch1-1
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 31.29GiB
Name: volcano
ID: ORQK:CHLO:PB4V:BVZ5:IYP7:ZRAU:SV23:TWLX:K3K7:53CK:RDI7:DIER
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: kevr2d2
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it had not recent activity during the stale period.