Docker for Mac using too much CPU
- [x] I have tried with the latest version of my channel (Stable or Edge)
- [x] I have uploaded Diagnostics
- Diagnostics ID:
15830610-550E-411F-8284-C3EC2FEFF231/20191121195019
Expected behavior
Docker for Mac does not use much CPU when no containers are running, for example when it has just started.
Actual behavior
Docker for Mac is using ~130% CPU while it should be idle.
Information
Issue started after a self-update and restart.
- Docker Desktop (Community)
- version: 2.1.0.5 (40693)
- channel: stable
- Engine version 19.03.5
- macOS version: 10.15.1
- Hardware:
- MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports)
- Processor: 2.8 Ghz Quad-Core Intel Core i7
- Memory: 16GB
Diagnostic logs
Diagnose succeeded
Steps to reproduce the behavior
- Install Docker for Mac version 2.1.0.5
- Ensure it is started
- Open Activity Monitor -> CPU, and sort by CPU descending Docker should be near the top with ~130% CPU usage
The same problem is happening here.
Diagnostics ID: CE4F2B69-1AEE-40DD-8C70-386969C454D4/20191123133335
Same here
99141BD1-8E5C-4C53-B1F3-FCB7D3E37DC4/20191123161352
Try this, it worked for me: https://github.com/docker/for-mac/issues/1759#issuecomment-558443657
I haven't looked into why this is happening but I'd advocate that the Docker for Mac dev team implements something that checks CPU usage. At the very least warn a user that CPU usage is higher than normal.
And if possible, it'd be awesome if they could figure out what the problem is.
Same here EB72F696-3291-4640-BE44-532EE38FCD21/20191128105104
Same here on MacBook Pro with Catalina. No containers running. Docker hogs 130% CPU, hyperkit is mostly idle. Version 2.1.0.5 Stable.
Diagnose ID: 312E6835-8FE2-45BF-A874-0003DC9CEFF7/20191129170218
My diagnose ID: 80E081FA-7763-4245-BB3F-15814B31E0BB/20191201085201
Diagnostic ID: F9E0239B-07CF-4BDA-9718-537E3F764E1A/20191202052926
Diagnostic ID: 09034906-334F-40D9-A4EF-1D1BD1B5E232/20191202074502
Diagnostic ID: FD290642-0433-4FDE-81E5-8C63295B3E90/20191202084313
I'm unable to start docker since upgrade to 2.1.0.5. It goes 100% CPU, even after complete reset.
Diagnostic ID: 1E6CB8BB-2F34-42BE-A85E-4AB14D5532DB/20191205084502
Confirming also unable to start containers since 2.1.0.5
Diagnostic ID: 0C701C05-F7F1-4F97-9F0E-AB472B90F04A/20191210222159
Diagnostic ID: 9CDF0A91-1021-472B-B27A-EFBDF42CBDA1/20200109103236
Diagnostic ID w/ Docker for Mac version 2.1.0.5 and macOS 10.15.2: DA642456-20A5-450F-BE3C-BE6A92B1BED9/20200114214500
I suspect this behavior may be related to a macOS update/issue. I've installed each of the 2.1.0.x versions as well as 2.0.0.3 with the same issue of 100%+ CPU being used consistently by the Docker process (not com.docker.hyperkit) with no containers running and kubernetes disabled.
Diagnostic ID w/ Docker for Mac version 2.0.0.3 and macOS 10.15.2: DA642456-20A5-450F-BE3C-BE6A92B1BED9/20200114235510
+1
Docker Desktop for Mac: 2.1.0.5 (40693) (stable)
macOS: 10.15.1
Diagnostic ID: AB0464D5-E4AD-4460-83A1-2C1C5DB8559A/20200115165330
Docker Desktop (Community)
version: 2.1.7.0 (41561) channel: edge
Engine version 19.03.5
macOS version: 10.15.2
Hardware:
MacBook Pro (15-inch, 2017)
Processor: 2.8 Ghz Quad-Core Intel Core i7
Memory: 16GB
Diagnostic ID: B5F77A92-8BF6-41DF-81DD-D3DB123D8AD2/20200115192621
Same symptoms happening here.
Diagnostics ID D3089899-8A13-47E9-9809-62F235E41444/20200206130746.
I tried minimising Disk space (as suggested in https://github.com/docker/for-mac/issues/1759), but it did not help. I also tried to reduce the nr of CPUs used by docker, but it does not seem to help either.
What is interesting that I've only seen this on 13" MacbookPro (mid 2017), on a MacbookPro 15"(mid 2015) I've never seen this issue.
Since I upgraded to Docker Desktop 2.2.0.0 all has been well.