docker
Docker network / connection issues
dial tcp.*connect: connection refused|Could not resolve host|network .+ not found
Fixes
- 1.Use service names (not localhost) for inter-container communication in docker-compose
- 2.Ensure containers are on the same Docker network: `docker network connect <network> <container>`
- 3.Check the target service is running and listening on the expected port inside the container
networkingcomposeconnectivity
Related Errors
docker3 fixes
Docker filesystem no space
Docker.*failed to create.*overlay|filesystem.*no space
- •Run docker system prune
- •Increase disk allocation for Docker
docker3 fixes
Docker exec into container failed
Docker.*OCI runtime.*exec failed|container.*cannot exec
- •Verify container is running
- •Check exec command exists in image
docker3 fixes
Docker build COPY file not found
Docker.*build.*COPY failed.*no such file
- •Check .dockerignore isn't excluding file
- •Verify path relative to build context