Skip to content

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

Closed

Description

@caroalvarezsilva
  • I have tried with the latest version of Docker Desktop
  • 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

Activity

  1. added
    area/m1
    on Jan 15, 2021
  2. simondeeley commented on Jan 22, 2021

    @simondeeley

    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.

  3. infostreams commented on Jan 25, 2021

    @infostreams

    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. 😕
  4. fiefdx commented on Jan 29, 2021

    @fiefdx

    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

  5. jiahuigeng commented on Jan 30, 2021

    @jiahuigeng

    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?

  6. jackgray commented on Feb 1, 2021

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

    @fiefdx 's solution worked for me

  7. dominikadamo commented on Feb 3, 2021

    @dominikadamo

    For me both solutions didn't work

  8. badgooooor commented on Feb 18, 2021

    @badgooooor

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

  9. yutashx commented on Mar 6, 2021

    @yutashx

    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.

  10. CharafouddineAhmed commented on Apr 19, 2021

    @CharafouddineAhmed

    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

  11. stephen-turner commented on May 7, 2021

    @stephen-turner
    Contributor

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

  12. j2dlorlsa commented on May 11, 2021

    @j2dlorlsa

    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

  13. j2dlorlsa commented on May 11, 2021

    @j2dlorlsa

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

  14. imaxrider commented on Jun 8, 2021

    @imaxrider

    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

  15. docker-robott commented on Jul 8, 2021

    @docker-robott
    Collaborator

    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

  16. locked and limited conversation to collaborators on Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/m1lifecycle/locked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions