🐳 Docker errors

Docker daemon, image, container, port and disk errors.

CodeErrorWhat it means
daemon Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? The docker CLI can’t talk to the Docker engine — it isn’t running, or your user can’t access the socket.
Conflict container name Conflict. The container name "/x" is already in use by container … A container (running or stopped) already has that name; Docker won’t create a second one with the same name.
COPY failed COPY failed: file not found in build context / "/app/x": not found The Dockerfile COPY refers to a path outside the build context, excluded by .dockerignore, or relative to the…
compose validation docker compose: services.x Additional property y is not allowed / yaml: line N: mapping values are not allowed The compose file is invalid YAML or uses a key Compose doesn’t recognise at that level (usually an indentatio…
port is already allocated Docker: Bind for 0.0.0.0:80 failed: port is already allocated Another container or host process already publishes that host port.
exec format error exec /usr/local/bin/docker-entrypoint.sh: exec format error The container tried to run a binary built for a different CPU architecture (arm64 vs amd64) — or a script wit…
ENOSPC no space left on device (Docker / Linux) The disk (or inode table) is full — Docker images, build cache, logs and volumes are common culprits.