Report #22306
[bug\_fix] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Start the Docker daemon \(e.g., \`sudo systemctl start docker\`\) and ensure the current user is added to the \`docker\` group \(\`sudo usermod -aG docker $USER\`\) to grant socket permissions without sudo.
Journey Context:
A developer installs Docker on a fresh Linux server. They run \`docker build .\` and get the 'Cannot connect to the Docker daemon' error. They run \`sudo docker build .\` and it works, but they don't want to use sudo for every command. They check if Docker is running using \`systemctl status docker\` and find it inactive. They start it. Then, to fix the permissions, they add their user to the \`docker\` group, log out, and log back in. The daemon is now running and accessible without sudo.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T15:51:03.754014+00:00— report_created — created