Cannot get Docker working in Macbook Pro M1

I recently got a Macbook Pro with an M1 Pro processor and I tried to install Docker. I have no previous experience about Macs, but I’m learning and I’m getting help from a co-worker. However, I cannot get Docker working. I installed the Apple silicon version of Docker, but it doesn’t seem to work. When I double-click the Docker icon, nothing happens. The whale icon doesn’t appear in task bar. Docker daemon isn’t running. There is a Docker task in the Activity Monitor, but eventually the process name turns red and there is “(Not Responding)” text after the process name.

I don’t know what to try next. I have tried uninstalling and reinstalling Docker, but it makes no difference.

Any ideas? I’m not very familiar with Docker in Windows either, so I don’t know how to debug this kind of problems.

Here is the log from Library/Containers/com.docker.docker/Data/log/host/Docker.log.

time="2022-02-04T14:27:18Z" level="info" msg="GoBackend: Launching Process /Applications/Docker.app/Contents/MacOS/com.docker.backend -watchdog -native-api"
time="2022-02-04T14:27:18Z" level="info" msg="GoBackend: com.docker.backend launched with PID 21778"
time="2022-02-04T14:27:18Z" level="info" msg="GoBackend: status Pinging"
time="2022-02-04T14:27:18Z" level="info" msg="IPCClient: 4a63510c-GoBackend (00dd6478) C->S GET /ping"
time="2022-02-04T14:27:18Z" level="info" msg="DevEnvsBackend: Launching Process /Applications/Docker.app/Contents/MacOS/com.docker.dev-envs -watchdog"
time="2022-02-04T14:27:18Z" level="error" msg="IPCClient: 4a63510c-GoBackend (00dd6478) C<-S GET /ping (1.811981ms): Request failed: no response"
time="2022-02-04T14:27:18Z" level="info" msg="DevEnvsBackend: com.docker.dev-envs launched with PID 21779"
time="2022-02-04T14:27:18Z" level="info" msg="ExtensionManagerBackend: Launching Process /Applications/Docker.app/Contents/MacOS/com.docker.desktop-extensions -address /User
s/vmkiili/Library/Containers/com.docker.docker/Data/extension-manager.sock -watchdog"
time="2022-02-04T14:27:18Z" level="info" msg="ExtensionManagerBackend: com.docker.desktop-extensions launched with PID 21780"
time="2022-02-04T14:27:18Z" level="info" msg="CrashReport: stderr redirected to /Users/vmkiili/Library/Group Containers/group.com.docker/DockerAppStderr.txt"
time="2022-02-04T14:27:18Z" level="info" msg="DevEnvsBackend: ⇨ http server started on docker-dev-env-api.sock
"
time="2022-02-04T14:27:18Z" level="info" msg="ExtensionManagerBackend: Starting Desktop Extension Manager
"
time="2022-02-04T14:27:18Z" level="fault" msg="GoBackend: Notified of unexpected termination of com.docker.backend"
time="2022-02-04T14:27:18Z" level="fault" msg="GoBackend: 0   Docker                              0x0000000100866748 $s6Docker14WatchedProcessC05startC033_CB5922B1013A2ABA2B
B8EAD3D4DF3136LLyyFySo6NSTaskCcfU0_ + 316
1   Docker                              0x00000001008665f8 $sSo12NSFileHandleCIegg_ABIeyBy_TR + 36
2   Foundation                          0x0000000187cfe494 __45-[NSConcreteTask launchWithDictionary:error:]_block_invoke_2 + 40
3   libdispatch.dylib                   0x0000000186b1ce60 _dispatch_call_block_and_release + 32
4   libdispatch.dylib                   0x0000000186b1ebac _dispatch_client_callout + 20
5   libdispatch.dylib                   0x0000000186b3043c _dispatch_root_queue_drain + 684
6   libdispatch.dylib                   0x0000000186b30b58 _dispatch_worker_thread2 + 164
7   libsystem_pthread.dylib             0x0000000186cd92c8 _pthread_wqthread + 228
8   libsystem_pthread.dylib             0x0000000186cd8018 start_wqthread + 8"

Can you find more error message in this file?

I already have Docker on my Mac M1 and I don’t remember if I had to configure anything. I guess I just downloaded the file and clicked on it. Some apps require additional steps like right clicking on the dmg file, then clicking on “open”. Then it asks you if you trust it. Since you have your log files, I don’t think it is the case.

This is the contents of that file:

2022-02-04 16:56:31.551 Docker[24593:230776] [Bugsnag] [INFO] Last run terminated during an app hang.
2022-02-04 16:56:31.555 Docker[24593:230776] [Bugsnag] [INFO] Sending launch crash synchronously.
2022-02-04 16:56:31.990 Docker[24593:230810] [Bugsnag] [INFO] Sent session C3277410-C241-4BEB-92DC-2664EEB1421B
2022-02-04 16:56:34.224 Docker[24593:230863] [Bugsnag] [INFO] App hang detected

I also tried Intel binary just for fun, but it had identical behaviour.

I finally managed to get it running! I removed the installation and ran these commands:

rm -rf ~/Library/Group\ Containers/group.com.docker
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/.docker

I noticed that .docker directory was owned by root user, so I had to use sudo to remove it.

5 Likes

Thank you for this - it helped me out with Docker not starting for me.

I made an account here just to say thank you so much for this! It worked out great.

This fixed my issue. Thank you very much