Docker network (name) not found, right after it's created

I run docker builds in different terminals. Occasionally I’m seeing this intermittent error. It doesn’t always happens, but it breaks often enough.

 Network my-project_default  Creating
 Network my-project_default  Created
 Error response from daemon: network my-project_default not found

On linux and macbook… using compose and docker

$ docker version
Client: Docker Engine - Community
 Version:           27.1.1

$ docker compose version
Docker Compose version v2.29.1

By any chance is this happening inside a script where docker compose down is immediately followed by docker compose up -d? If it’s the case this might help: https://forums.docker.com/t/error-starting-userland-proxy-listen-tcp4-0-0-0-0-bind-address-already-in-use/140275/14

You could check the docker compose github project, and see whether such an issue is already registered, or create one:

1 Like