for-mac
for-mac copied to clipboard
unix:///var/run/docker.sock.
Description
Docker is not allowing me to run docker
Reproduce
MernyPierreMBP:~ merny24$ docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Expected behavior
MernyPierreMBP:~ merny24$ docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker version
MernyPierreMBP:~ merny24$ docker version
Client:
Version: 26.1.4
API version: 1.45
Go version: go1.21.11
Git commit: 5650f9b
Built: Wed Jun 5 11:26:02 2024
OS/Arch: darwin/arm64
Context: default
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
MernyPierreMBP:~ merny24$
docker info
MernyPierreMBP:~ merny24$ docker info
Client:
Version: 26.1.4
Context: default
Debug Mode: false
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
MernyPierreMBP:~ merny24$
Diagnostics ID
C987FE3E-3361-489A-A3CC-4E90762A38FA/20240715132835
Additional Info
No response
The problem is that your docker context is not pointing to a working docker server.
docker context ls will show you available contexts.
You may need to docker context use desktop-linux for Docker Desktop on macOS instead of using the default context.