Troubleshooting¶
For runtime endpoint settings, see configuration.
Docker daemon is not reachable¶
Symptoms:
- container start fails immediately
- Docker API errors from runtime client
Checks:
- Ensure Docker is running.
- Verify socket/endpoint access:
1 2 | |
- Set
DOCKER_HOSTwhen not using the default local socket:
1 | |
Container starts but app is not ready¶
GenericContainer uses a running-state wait strategy by default.
For real readiness, add an explicit wait strategy (WaitForLog, WaitForExec, WaitForHttp, WaitForHostPort, WaitForHealthCheck).
See wait strategies for examples.
Wrong host/port in CI or Docker-in-Docker¶
If mapped ports are reachable but host resolution is wrong, set:
1 | |
Use a value that is reachable from your test process.
Private registry pull failures¶
If image pull fails for private registries, provide Docker auth config through:
1 | |
or configure credentials in Docker config files (~/.docker/config.json).
Podman-specific networking issues¶
When using Podman with Docker-compatible APIs, host/network behavior can differ from Docker.
If startup succeeds but connections fail, check DOCKER_HOST, network mode, and host override settings.