M1 preview: Docker always starting – dial unix docker.raw.sock: connect: no such file or directory
- [x] I have tried with the latest version of Docker Desktop
- [x] I have tried disabling enabled experimental features
- [ ] I have uploaded Diagnostics
Expected behavior
I get Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory trying to run docker by command line, and Dockers runnnig by the IDE. Version: 20.10.1
Information
- macOS Version: Mac OSBigSur 11.0.1
Report issue> 6B14D24D-D134-4059-B90B-96E86A642DC5/20210114193921
Same issue for me too. However, Docker was working perfectly fine (Mac M1 OS 11.1) until MacOS itself force-restarted the laptop due to an unknown fatal error. Since then, Docker has not worked.
Workaround:
- Install AppCleaner
- Open the Finder and go to Applications
- Delete the Docker application
- Click "Confirm" in the popup that AppCleaner shows, to delete all "related" files that Docker installed
- Re-install Docker for M1 from https://docs.docker.com/docker-for-mac/apple-m1/
- Repeat when you have to reboot
- 😕
I use method from this link: https://forums.docker.com/t/restart-docker-from-command-line/9420 stop & start docker manually, and, it's work.
How to control Docker for Mac from the CLI Stop Docker for Mac gracefully
test -z "$(docker ps -q 2>/dev/null)" && osascript -e 'quit app "Docker"'
Note: Requires all Docker containers in the stopped state
Stop all Docker containers without confirmation (dangerous if running something)
docker ps -q | xargs -L1 docker stop
Note: Assumes all running Docker containers are in a quiesced state
Start Docker gracefully
open --background -a Docker
Note: It may take up to a minute for Docker to fully start
Workaround:
- Install AppCleaner
- Open the Finder and go to Applications
- Delete the Docker application
- Click "Confirm" in the popup that AppCleaner shows, to delete all "related" files that Docker installed
- Re-install Docker for M1 from https://docs.docker.com/docker-for-mac/apple-m1/
- Repeat when you have to reboot
- 😕
not work for me, anyone succeeds?
test -z "$(docker ps -q 2>/dev/null)" && osascript -e 'quit app "Docker"'
open --background -a Docker
@fiefdx 's solution worked for me
For me both solutions didn't work
Report issue : 9CB11941-A621-44D4-8E9F-78E3E9F8BA1F/25640218072511
I faced the same issue, but I solved it below method.
- Uninstall the docker preview app in the troubleshoot page on the dashboard
- Re-install it
- Open it
- Type password correctly
- Login docker account
I think this issue may cause due to password typo or something related to docker account.
I use method from this link: https://forums.docker.com/t/restart-docker-from-command-line/9420 stop & start docker manually, and, it's work.
How to control Docker for Mac from the CLI Stop Docker for Mac gracefully
test -z "$(docker ps -q 2>/dev/null)" && osascript -e 'quit app "Docker"'Note: Requires all Docker containers in the stopped state
Stop all Docker containers without confirmation (dangerous if running something)
docker ps -q | xargs -L1 docker stopNote: Assumes all running Docker containers are in a quiesced state
Start Docker gracefully
open --background -a DockerNote: It may take up to a minute for Docker to fully start
@fiefdx 's solution worked for me. Merci
I think this is obsolete, I'm going to close it. If there are still startup issues, please open a new ticket with diagnostics.
Same problem on Mac M1 : Big Sur 11.4 beta 4..
Docker wont run,
Problem 1 : It hangs on Init,when I try to install any container :
Error response from daemon: dial unix docker.raw.sock: connect: connection refused ""
This problem is when I Install docker with the Desktop version on Silicon Processor. @docker-desktop-robot
Go to folder ~/.docker
1.Uninstall docker 2.Delete folder .docker 3.Install docker again
Work for me
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked