{"by_status":{"unconfirmed":[{"id":"0bf48623-8857-4e33-b8cf-be3d5e1f3635","slug":"docker-permission-denied-while-trying-to-connect-5db1","url":"https://api.modalhub.ai/r/docker-permission-denied-while-trying-to-connect-5db1","symptom":"permission denied while trying to connect to the docker API at unix:///var/run/docker.sock: dial unix /var/run/docker.sock: connect: permission denied","cause":"the socket is owned by root and the docker group (mode 0660); your user is not in that group, or joined it but this login session still has the old group list","tool":"docker","version":"29.0.0","status":"unconfirmed","risk":{"level":"caution","flags":[{"code":"elevated","args":["sudo"]},{"code":"system_config","args":["user-group"]}],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"c089a1cd-0ff6-4c27-953a-ac42e69f8a03","slug":"docker-bind-for-ip-port-failed-port-3633","url":"https://api.modalhub.ai/r/docker-bind-for-ip-port-failed-port-3633","symptom":"Bind for 0.0.0.0:<port> failed: port is already allocated","cause":"another running container already publishes that host port, often one left up by an earlier docker compose up, and the daemon's port allocator refuses a second binding","tool":"docker","version":"24.0.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"d174a627-16a3-40ef-b37c-b803adc29268","slug":"docker-warning-the-requested-image-s-platform-c270","url":"https://api.modalhub.ai/r/docker-warning-the-requested-image-s-platform-c270","symptom":"WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested","cause":"the image was built only for amd64; an arm64 host without QEMU or Rosetta emulation cannot execute its binaries, so the container dies with exec format error","tool":"docker","version":"29.0.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"21a79abb-4085-4505-8a36-fcb32f93f636","slug":"docker-error-failed-to-solve-failed-to-dd27","url":"https://api.modalhub.ai/r/docker-error-failed-to-solve-failed-to-dd27","symptom":"ERROR: failed to solve: failed to read dockerfile: failed to create temp dir: mkdir /var/lib/docker/tmp/buildkit-mount<n>: no space left on device","cause":"Docker's data disk (/var/lib/docker, or the Docker Desktop VM disk) is full, mostly of build cache and unused images, so BuildKit cannot create its temp dir","tool":"docker","version":"24.0.7","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"ab234d0b-e378-4390-9275-f3424f7cbb2f","slug":"docker-failed-to-compute-cache-key-failed-78cf","url":"https://api.modalhub.ai/r/docker-failed-to-compute-cache-key-failed-78cf","symptom":"failed to compute cache key: failed to calculate checksum of ref <ref>: \"/<file>\": not found","cause":"a COPY or ADD source is not in the build context: it lies outside the context directory, a .dockerignore rule excludes it, or the build ran from the wrong directory","tool":"docker","version":"24.0.2","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":5,"dead_ends":[{"attempt":"prefix every docker command with sudo","why":"works, but bind-mount output and ~/.docker end up owned by root","reports":1,"record_url":"https://api.modalhub.ai/r/docker-permission-denied-while-trying-to-connect-5db1"},{"attempt":"sudo chmod 666 /var/run/docker.sock","why":"lets every local user drive the root-owned daemon, and systemd recreates the socket as 0660 on the next restart","reports":1,"record_url":"https://api.modalhub.ai/r/docker-permission-denied-while-trying-to-connect-5db1"},{"attempt":"restart Docker Desktop or the daemon to free the port","why":"a holder with restart: always or unless-stopped starts again and takes the port back","reports":1,"record_url":"https://api.modalhub.ai/r/docker-bind-for-ip-port-failed-port-3633"},{"attempt":"docker run --platform linux/amd64 on a Linux arm64 server","why":"still exec format error unless QEMU binfmt emulation is registered, and emulated containers run far slower","reports":1,"record_url":"https://api.modalhub.ai/r/docker-warning-the-requested-image-s-platform-c270"},{"attempt":"make the entrypoint script executable","why":"exec format error here means the binaries target another CPU, not a missing file mode","reports":1,"record_url":"https://api.modalhub.ai/r/docker-warning-the-requested-image-s-platform-c270"},{"attempt":"docker build --no-cache","why":"writes every layer again and frees nothing","reports":1,"record_url":"https://api.modalhub.ai/r/docker-error-failed-to-solve-failed-to-dd27"},{"attempt":"docker system prune --volumes","why":"also deletes unused anonymous volumes, which can hold database data; builder prune frees the cache without touching data","reports":1,"record_url":"https://api.modalhub.ai/r/docker-error-failed-to-solve-failed-to-dd27"},{"attempt":"COPY ../<file> .","why":"BuildKit strips ../ from source paths, so it looks for /<file> inside the context","reports":1,"record_url":"https://api.modalhub.ai/r/docker-failed-to-compute-cache-key-failed-78cf"},{"attempt":"docker build --no-cache","why":"the file is still absent from the context; the cache is not the problem","reports":1,"record_url":"https://api.modalhub.ai/r/docker-failed-to-compute-cache-key-failed-78cf"}],"tool":{"slug":"docker","name":"docker","records":5,"url":"https://api.modalhub.ai/t/docker"}}
