docker / for-mac

Bug reports for Docker Desktop for Mac
https://www.docker.com/products/docker#/mac
2.43k stars 118 forks source link

unix:///var/run/docker.sock. #7354

Open merny24 opened 1 month ago

merny24 commented 1 month ago

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

rfay commented 1 month ago

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.