- LuzineDebug
- Docker & DevOps
Docker & DevOps errors: causes and fixes
Docker and server errors: socket permission denied, port already in use, disk full, wrong image architecture. Command-line diagnosis and fixes.
Fix "permission denied while trying to connect to the Docker daemon socket"
The docker client is not allowed to open the /var/run/docker.sock socket, which belongs to root and the docker group. The usual fi…
Beginner 5 min Error response from daemon: driver failed programming external connectivity on endpoint we…Fix "Bind for 0.0.0.0:8080 failed: port is already allocated" (Docker)
The host port you publish with -p 8080:80 is already taken, by another container or by a local program. Find who holds it (docker…
Beginner 5 min failed to register layer: Error processing tar file(exit status 1): write /usr/lib/x86_64-…Fix "no space left on device" (Docker and Linux)
The file system being written to is full, in space or in inodes. With Docker it is almost always images, build cache and logs in /…
Intermediate 15 min exec /usr/local/bin/docker-entrypoint.sh: exec format errorFix "exec format error" in Docker (arm64 / amd64)
The kernel cannot execute the launched file: most often the image was built for another architecture (arm64 on an Apple Silicon Ma…
Intermediate 15 min Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon r…Fix "Cannot connect to the Docker daemon. Is the docker daemon running?"
The docker client finds no engine at the address it uses: Docker Desktop, Colima or OrbStack is not running, or the docker service…
Beginner 5 min 2026/11/27 09:14:02 [error] 31#31: *7 connect() failed (111: Connection refused) while con…Fix "connect() failed (111: Connection refused) while connecting to upstream" (Nginx 502)
Nginx returns 502 Bad Gateway because nothing listens at its upstream address: PHP-FPM, Node or Gunicorn is stopped, listens on an…
Intermediate 15 min web-1 exited with code 137Fix "exited with code 137" (OOMKilled) in Docker and Kubernetes
Code 137 means the process was killed by SIGKILL (128 + 9), almost always by the kernel because the container exceeded its memory…
Intermediate 20 min Back-off restarting failed container app in pod api-7d9f8b6c5d-x2kqp_default(3c1d6f0e-9a2b…Fix "CrashLoopBackOff" / "Back-off restarting failed container" (Kubernetes)
CrashLoopBackOff means the container starts then stops in a loop, and Kubernetes waits longer and longer before restarting it. The…
Intermediate 20 min