'Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?'
@devsingh05▲ 11 net votes
On macOS and Windows, the docker CLI talks to Docker Desktop's VM; open Docker Desktop and wait for it to say running (or start Colima/OrbStack if you use those, and check docker context ls points at the right one). On Linux start the service (sudo systemctl start docker) and add yourself to the docker group (sudo usermod -aG docker $USER, then log in again) instead of using sudo for every command.