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

Docker Desktop won't Resume on macOS

Open robd003 opened this issue 3 years ago • 16 comments

  • [X] I have tried with the latest version of Docker Desktop
  • [X] I have tried disabling enabled experimental features
  • [X] I have uploaded Diagnostics
  • Diagnostics ID: 17C272C8-850F-4CEB-AE3C-9BC16229A0B0/20221217171918

Expected behavior

Docker resumes after you click the resume button

Actual behavior

Docker is stuck in a paused state. The only way to fix it is to quit Docker Desktop and start it again.

Information

Please, help us understand the problem. For instance:

  • Is it reproducible? Yes
  • Is the problem new? Yes
  • Did the problem appear with an update? 4.15.0
  • macOS Version: 12.6.2
  • Intel chip or Apple chip: M1 Max
  • Docker Desktop Version: 4.15.0

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[FAIL] DD0011: are the LinuxKit services running? failed to ping VM diagnosticsd with error: Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2022-12-17T17:22:57.894217000Z][com.docker.diagnose][I] ipc.NewClient: 00fb7aa5-diagnose -> diagnosticd.sock diagnosticsd
[common/pkg/diagkit/gather/diagnose.glob..func12()
[	common/pkg/diagkit/gather/diagnose/linuxkit.go:18 +0x8c
[common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x1034bb960)
[	common/pkg/diagkit/gather/diagnose/test.go:46 +0x40
[common/pkg/diagkit/gather/diagnose.Run.func1(0x1034bb960)
[	common/pkg/diagkit/gather/diagnose/run.go:17 +0x40
[common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x4?, 0x1034bb960)
[	common/pkg/diagkit/gather/diagnose/run.go:142 +0x80
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x3, 0x1034bb960, 0x1400056b718)
[	common/pkg/diagkit/gather/diagnose/run.go:151 +0x88
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x2, 0x1034bb9e0, 0x1400056b718)
[	common/pkg/diagkit/gather/diagnose/run.go:148 +0x50
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x1034bbae0, 0x1400056b718)
[	common/pkg/diagkit/gather/diagnose/run.go:148 +0x50
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0x1034bbd60, 0x1400056b718)
[	common/pkg/diagkit/gather/diagnose/run.go:148 +0x50
[common/pkg/diagkit/gather/diagnose.walkOnce(0x102f94700?, 0x140003df890)
[	common/pkg/diagkit/gather/diagnose/run.go:137 +0x8c
[common/pkg/diagkit/gather/diagnose.Run(0x1034bbd60, 0x130d78d0?, {0x140003dfb08, 0x1, 0x1})
[	common/pkg/diagkit/gather/diagnose/run.go:16 +0x160
[main.checkCmd({0x140001b2010?, 0x6?, 0x4?}, {0x0, 0x0})
[	common/cmd/com.docker.diagnose/main.go:133 +0xdc
[main.main()
[	common/cmd/com.docker.diagnose/main.go:99 +0x30c
[2022-12-17T17:22:57.894853000Z][com.docker.diagnose][I] (46754712) 00fb7aa5-diagnose C->S diagnosticsd GET /ping
[2022-12-17T17:22:58.896963000Z][com.docker.diagnose][W] (46754712) 00fb7aa5-diagnose C<-S NoResponse GET /ping (1.001990583s): Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

[FAIL] DD0004: is the Docker engine running? Get "http://ipc/docker": read unix ->/Users/robd/Library/Containers/com.docker.docker/Data/lifecycle-server.sock: i/o timeout (Client.Timeout exceeded while awaiting headers)
[2022-12-17T17:22:58.900414000Z][com.docker.diagnose][I] ipc.NewClient: da29c5ee-com.docker.diagnose -> lifecycle-server.sock VMDockerdAPI
[linuxkit/pkg/desktop-host-tools/pkg/client.NewClientForPath(...)
[	linuxkit/pkg/desktop-host-tools/pkg/client/client.go:61
[linuxkit/pkg/desktop-host-tools/pkg/client.NewClient({0x102dc9c45, 0x13})
[	linuxkit/pkg/desktop-host-tools/pkg/client/client.go:55 +0x90
[common/pkg/diagkit/gather/diagnose.isDockerEngineRunning()
[	common/pkg/diagkit/gather/diagnose/dockerd.go:21 +0x28
[common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x1034bb9e0)
[	common/pkg/diagkit/gather/diagnose/test.go:46 +0x40
[common/pkg/diagkit/gather/diagnose.Run.func1(0x1034bb9e0)
[	common/pkg/diagkit/gather/diagnose/run.go:17 +0x40
[common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x3?, 0x1034bb9e0)
[	common/pkg/diagkit/gather/diagnose/run.go:142 +0x80
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x2, 0x1034bb9e0, 0x1400056b718)
[	common/pkg/diagkit/gather/diagnose/run.go:151 +0x88
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x1034bbae0, 0x1400056b718)
[	common/pkg/diagkit/gather/diagnose/run.go:148 +0x50
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0x1034bbd60, 0x1400056b718)
[	common/pkg/diagkit/gather/diagnose/run.go:148 +0x50
[common/pkg/diagkit/gather/diagnose.walkOnce(0x102f94700?, 0x140003df890)
[	common/pkg/diagkit/gather/diagnose/run.go:137 +0x8c
[common/pkg/diagkit/gather/diagnose.Run(0x1034bbd60, 0x130d78d0?, {0x140003dfb08, 0x1, 0x1})
[	common/pkg/diagkit/gather/diagnose/run.go:16 +0x160
[main.checkCmd({0x140001b2010?, 0x6?, 0x4?}, {0x0, 0x0})
[	common/cmd/com.docker.diagnose/main.go:133 +0xdc
[main.main()
[	common/cmd/com.docker.diagnose/main.go:99 +0x30c
[2022-12-17T17:22:58.901686000Z][com.docker.diagnose][I] (58cc3501) da29c5ee-com.docker.diagnose C->S VMDockerdAPI GET /docker
[2022-12-17T17:23:08.903784000Z][com.docker.diagnose][W] (58cc3501) da29c5ee-com.docker.diagnose C<-S NoResponse GET /docker (10.002104875s): Get "http://ipc/docker": read unix -><HOME>/Library/Containers/com.docker.docker/Data/lifecycle-server.sock: i/o timeout (Client.Timeout exceeded while awaiting headers)
[2022-12-17T17:23:08.905614000Z][com.docker.diagnose][I] (58cc3501-1) da29c5ee-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-12-17T17:23:09.908005000Z][com.docker.diagnose][W] (58cc3501-1) da29c5ee-com.docker.diagnose C<-S NoResponse GET /ping (1.002350167s): Get "http://ipc/ping": read unix -><HOME>/Library/Containers/com.docker.docker/Data/lifecycle-server.sock: i/o timeout (Client.Timeout exceeded while awaiting headers)
[2022-12-17T17:23:10.911129000Z][com.docker.diagnose][I] (58cc3501-2) da29c5ee-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-12-17T17:23:11.914973000Z][com.docker.diagnose][W] (58cc3501-2) da29c5ee-com.docker.diagnose C<-S NoResponse GET /ping (1.0038195s): Get "http://ipc/ping": read unix -><HOME>/Library/Containers/com.docker.docker/Data/lifecycle-server.sock: i/o timeout (Client.Timeout exceeded while awaiting headers)
[2022-12-17T17:23:12.917847000Z][com.docker.diagnose][I] (58cc3501-3) da29c5ee-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-12-17T17:23:13.920596000Z][com.docker.diagnose][W] (58cc3501-3) da29c5ee-com.docker.diagnose C<-S NoResponse GET /ping (1.002745833s): Get "http://ipc/ping": read unix -><HOME>/Library/Containers/com.docker.docker/Data/lifecycle-server.sock: i/o timeout (Client.Timeout exceeded while awaiting headers)
[2022-12-17T17:23:14.922934000Z][com.docker.diagnose][I] (58cc3501-4) da29c5ee-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-12-17T17:23:15.926195000Z][com.docker.diagnose][W] (58cc3501-4) da29c5ee-com.docker.diagnose C<-S NoResponse GET /ping (1.003196083s): Get "http://ipc/ping": read unix -><HOME>/Library/Containers/com.docker.docker/Data/lifecycle-server.sock: i/o timeout (Client.Timeout exceeded while awaiting headers)

[PASS] DD0015: are the binary symlinks installed?
[FAIL] DD0031: does the Docker API work? Get "http://docker.raw.sock/v1.24/containers/json?limit=0": context deadline exceeded
[PASS] DD0013: is the $PATH ok?

Steps to reproduce the behavior

Pause Docker Desktop, then try to resume at any later point. This happens even if the computer has been running the entire time without going to sleep.

robd003 avatar Dec 17 '22 17:12 robd003

Further note: this happens every time Docker Desktop is paused.

robd003 avatar Dec 17 '22 17:12 robd003

I have exactly the same issue.

Xat59 avatar Dec 19 '22 13:12 Xat59

Same issue, needed to force quit all processes in order to make Docker work again

d8vjork avatar Dec 19 '22 16:12 d8vjork

same here, gotta restart whole docker

PrinceWong424 avatar Jan 06 '23 01:01 PrinceWong424

same here

spointecker avatar Jan 10 '23 07:01 spointecker

same issue

kostovmike avatar Jan 10 '23 10:01 kostovmike

https://github.com/docker/for-mac/issues/6058

domarmstrong avatar Jan 11 '23 09:01 domarmstrong

+1, no response after resume clicked, and have to force it in Activity Monitor to make it work again

laggage avatar Jan 12 '23 03:01 laggage

+1, using macbook m1 here.

rafaelmaia8384 avatar Jan 21 '23 18:01 rafaelmaia8384

+1, resume/pause on macbook M1 barely works at all (for most of my attempts to resume there is no reaction at all)

kapitanov avatar Jan 26 '23 12:01 kapitanov

Same here, also on MacBook Intel

amirsarhang avatar Feb 10 '23 12:02 amirsarhang

same issue. To resume it again I have to quit Docker Desktop and force quit com.docker.hyperkit on activity monitor

gusbakker avatar Feb 17 '23 11:02 gusbakker

I'm having the same issue on the M1 MBP.

SevcanAlkan avatar Feb 24 '23 07:02 SevcanAlkan

Same issue on my Intel Macbook. I also need to force quit docker desktop after it happens.

nicbou avatar Mar 02 '23 10:03 nicbou

not just resume. can't simply quit Docker Desktop (it hangs). Forced to kill all processes with Docker.

waynepan avatar Mar 12 '23 22:03 waynepan

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robot avatar Jun 23 '23 01:06 docker-robot