for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

M1 preview: Docker always starting – dial unix docker.raw.sock: connect: no such file or directory

Open caroalvarezsilva opened this issue 5 years ago • 14 comments

  • [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

caroalvarezsilva avatar Jan 14 '21 19:01 caroalvarezsilva

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.

simondeeley avatar Jan 22 '21 23:01 simondeeley

Workaround:

  1. Install AppCleaner
  2. Open the Finder and go to Applications
  3. Delete the Docker application
  4. Click "Confirm" in the popup that AppCleaner shows, to delete all "related" files that Docker installed
  5. Re-install Docker for M1 from https://docs.docker.com/docker-for-mac/apple-m1/
  6. Repeat when you have to reboot
  7. 😕

infostreams avatar Jan 25 '21 08:01 infostreams

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

fiefdx avatar Jan 29 '21 09:01 fiefdx

Workaround:

  1. Install AppCleaner
  2. Open the Finder and go to Applications
  3. Delete the Docker application
  4. Click "Confirm" in the popup that AppCleaner shows, to delete all "related" files that Docker installed
  5. Re-install Docker for M1 from https://docs.docker.com/docker-for-mac/apple-m1/
  6. Repeat when you have to reboot
  7. 😕

not work for me, anyone succeeds?

jiahuigeng avatar Jan 30 '21 20:01 jiahuigeng

test -z "$(docker ps -q 2>/dev/null)" && osascript -e 'quit app "Docker"'
open --background -a Docker

@fiefdx 's solution worked for me

jackgray avatar Feb 01 '21 05:02 jackgray

For me both solutions didn't work

dominikadamo avatar Feb 03 '21 16:02 dominikadamo

Report issue : 9CB11941-A621-44D4-8E9F-78E3E9F8BA1F/25640218072511

badgooooor avatar Feb 18 '21 07:02 badgooooor

I faced the same issue, but I solved it below method.

  1. Uninstall the docker preview app in the troubleshoot page on the dashboard
  2. Re-install it
  3. Open it
  4. Type password correctly
  5. Login docker account

I think this issue may cause due to password typo or something related to docker account.

yutashx avatar Mar 06 '21 09:03 yutashx

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

@fiefdx 's solution worked for me. Merci

CharafouddineAhmed avatar Apr 19 '21 12:04 CharafouddineAhmed

I think this is obsolete, I'm going to close it. If there are still startup issues, please open a new ticket with diagnostics.

stephen-turner avatar May 07 '21 18:05 stephen-turner

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 ""

Screenshot 2021-05-11 at 20 47 49 Screenshot 2021-05-11 at 20 48 01

j2dlorlsa avatar May 11 '21 18:05 j2dlorlsa

This problem is when I Install docker with the Desktop version on Silicon Processor. @docker-desktop-robot

j2dlorlsa avatar May 11 '21 18:05 j2dlorlsa

Screen Shot 2564-06-08 at 13 22 58

Go to folder ~/.docker

1.Uninstall docker 2.Delete folder .docker 3.Install docker again

Work for me

imaxrider avatar Jun 08 '21 06:06 imaxrider

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

docker-robott avatar Jul 08 '21 03:07 docker-robott