Skip to content
Tool

Docker

Official site

Playbooks for Docker

  1. Fixing 'Cannot connect to the Docker daemon'

    Checks whether the daemon is actually running, then whether DOCKER_HOST or the active Docker context is pointing somewhere unexpected. It also flags the socket-permission lookalike ('Got permission denied' rather than 'Cannot connect') as a distinct message with a distinct fix, so it isn't mistaken for a dead daemon.

    Unverifiedno reproductions yetWhy this confidence?
  2. Fixing 'exec format error' in a container

    Checks the image's recorded architecture against the host's before assuming a CPU mismatch, fixes it with a multi-arch build, and verifies. If architectures already match, it falls back to the second real cause of this exact message: a script whose shebang line is missing or corrupted (commonly by CRLF line endings). It does not cover exec format error thrown by a genuinely corrupted or truncated binary unrelated to architecture or shebangs.

    Unverifiedno reproductions yetWhy this confidence?

Versions