GrepBoard/Manuals
605 manuals ·

Containers 12

Docker and Kubernetes on real hosts: the error, the cause, and the command that fixes it — run in a container where possible.

  1. 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
  2. Fix Kubernetes ImagePullBackOff and ErrImagePull

    ImagePullBackOff and ErrImagePull mean the node could not pull the image. Use the describe event to spot a wrong tag, registry auth, or a rate limit.

    Kubernetes and GKE official docs · 2026-10
  3. 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
  4. 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
  5. 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
  6. Fix Kubernetes CrashLoopBackOff with describe and logs --previous

    CrashLoopBackOff means a container keeps dying. Read Last State in describe and logs --previous to tell app errors, OOMKilled, and probe kills apart.

    Kubernetes official docs (1.35 and 1.37 docs) · 2026-10
  7. 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
  8. 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
  9. 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
  10. Fix kubectl connection to the server localhost:8080 was refused

    kubectl shows localhost:8080 was refused usually because it loaded no kubeconfig. Check the loaded file with -v=6, then fix KUBECONFIG, HOME or the context.

    kubectl v1.37.1 (ubuntu:24.04 Docker) · Kubernetes official docs · 2026-10
  11. 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
  12. 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