Docker 9
Docker engine, images, ports, logs and Docker Hub limits.
- Find an API key left in a Docker image, use build secrets
A key passed with ARG shows in docker history; with ENV it also shows in inspect and the container. How to find it and fix it with RUN --mount=type=secret.
Docker Engine 29.9.2 · Buildx v0.38.1 · alpine:3.20 · tested with fake keys · 2026-11 - Fix Docker permission denied connecting to the daemon socket
Docker "permission denied ... daemon socket" means your user is not in the docker group. Add it with usermod -aG, log in again, and never chmod 666 the socket.
Ubuntu 24.04 (Docker) · docker CLI 29.1.3 · 24.0.7 · 2026-10 - Docker "Bind for 0.0.0.0:80 failed: port is already allocated"
Docker "port is already allocated" means another container publishes that host port. Find it with docker ps --filter publish and stop it or move the port.
Ubuntu 24.04 · Docker Engine 29.9.2 · nginx 1.30.6 (Docker) · 2026-10 - Docker json-file logs filling the disk: max-size and max-file
Docker json-file logs are unlimited by default. Find the big one by LogPath, set max-size and max-file, and recreate existing containers.
Docker Engine 29.9.2 · Ubuntu 24.04 · 2026-10 - Fix Docker exec format error: image built for the wrong CPU
Docker "exec format error" usually means an arm64 image on amd64. Check the image architecture, rebuild with --platform, or add a shebang to the entrypoint.
Ubuntu 24.04 · Docker Engine 29.9.2 · busybox 1.37 · 2026-10 - docker logs: configured logging driver does not support reading
docker logs can't read when the driver is none or a remote driver has cache-disabled. Read logs at the destination and recreate the container.
Docker Engine 29.9.2 · Ubuntu 24.04 · 2026-10 - Fix "debconf: unable to initialize frontend: Dialog" in Docker
Docker build "debconf: unable to initialize frontend" means apt tried to ask a question with no terminal. Set ARG DEBIAN_FRONTEND=noninteractive; preset tzdata.
Ubuntu 24.04 (Docker) · tzdata 2026e · Docker Engine 29.9.2 · 2026-10 - Fix Docker Hub "You have reached your pull rate limit"
Docker Hub "pull rate limit" is a 429 for too many anonymous pulls. Check what is left with a HEAD request, then docker login and cache images in CI.
Ubuntu 24.04 (Docker) · curl 8.5.0 · Docker Hub docs · 2026-10 - Docker --memory and --cpus Limits: OOMKilled, Exit Code 137
Docker containers have no memory or CPU limit by default. Verify --memory and --cpus with inspect, diagnose exit 137 OOMKilled, and use docker update.
Docker Engine 29.9.2 · Ubuntu 24.04 (cgroup v2) · python:3.12-slim · 2026-10