Skip to content

Docker for Mac using too much CPU #4064

Closed

Description

@jakeonfire
  • I have tried with the latest version of my channel (Stable or Edge)
  • 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

  1. Install Docker for Mac version 2.1.0.5
  2. Ensure it is started
  3. Open Activity Monitor -> CPU, and sort by CPU descending
    Docker should be near the top with ~130% CPU usage

Activity

  1. fernandoacostateixeira commented on Nov 23, 2019

    @fernandoacostateixeira

    The same problem is happening here.

    Diagnostics ID: CE4F2B69-1AEE-40DD-8C70-386969C454D4/20191123133335

  2. jimmycallin commented on Nov 23, 2019

    @jimmycallin

    Same here

    99141BD1-8E5C-4C53-B1F3-FCB7D3E37DC4/20191123161352

  3. marcelhageman commented on Nov 26, 2019

    @marcelhageman

    Try this, it worked for me: #1759 (comment)

    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.

  4. joshuatroy commented on Nov 28, 2019

    @joshuatroy

    Same here
    EB72F696-3291-4640-BE44-532EE38FCD21/20191128105104

  5. OktarinTentakel commented on Nov 29, 2019

    @OktarinTentakel

    Same here on MacBook Pro with Catalina. No containers running. Docker hogs 130% CPU, hyperkit is mostly idle. Version 2.1.0.5 Stable.

  6. OktarinTentakel commented on Nov 29, 2019

    @OktarinTentakel

    Diagnose ID: 312E6835-8FE2-45BF-A874-0003DC9CEFF7/20191129170218

  7. m8rge commented on Dec 1, 2019

    @m8rge

    My diagnose ID: 80E081FA-7763-4245-BB3F-15814B31E0BB/20191201085201

  8. RZachLamberty commented on Dec 2, 2019

    @RZachLamberty

    Diagnostic ID: F9E0239B-07CF-4BDA-9718-537E3F764E1A/20191202052926

  9. mullakhmetov commented on Dec 2, 2019

    @mullakhmetov

    Diagnostic ID: 09034906-334F-40D9-A4EF-1D1BD1B5E232/20191202074502

  10. sokogen commented on Dec 2, 2019

    @sokogen

    Diagnostic ID: FD290642-0433-4FDE-81E5-8C63295B3E90/20191202084313

  11. galderz commented on Dec 4, 2019

    @galderz

    I'm unable to start docker since upgrade to 2.1.0.5. It goes 100% CPU, even after complete reset.

  12. RuudvdvNB commented on Dec 5, 2019

    @RuudvdvNB

    Diagnostic ID: 1E6CB8BB-2F34-42BE-A85E-4AB14D5532DB/20191205084502

  13. jasonHav commented on Dec 10, 2019

    @jasonHav

    Confirming also unable to start containers since 2.1.0.5
    Diagnostic ID: 0C701C05-F7F1-4F97-9F0E-AB472B90F04A/20191210222159

  14. 29 remaining items

  15. schellj commented on May 7, 2020

    @schellj

    I had this issue come up again after the last Docker for Mac update.

    I was experiencing normal CPU usage by the Docker process until I updated when it started using 100%+ constantly again . I tried doing a docker system prune -a --volumes and a system restart, but the issue persisted. I then resized the Docker disk image (as I had previously mentioned here: #4064 (comment)) and I believe I did a system restart and the Docker process CPU usage issue was resolved.

  16. jakeonfire commented on May 27, 2020

    @jakeonfire
    Author

    my Docker process is sitting comfortably at 0% CPU and hyperkit has been using < 10% consistently (when not running anything, obviously). not sure when or what change might have helped, but this issue is no longer an issue for me. are other's still seeing the Docker process using a bunch of unnecessary CPU?
    i'm running Docker for Desktop 2.3.0.2 with macOS Catalina on a 2019 13".

  17. schellj commented on May 27, 2020

    @schellj

    I have a coworker that was having this issue (either with the Docker process or the hyperkit process), but it stopped after upgrading to 2.3. I haven't upgraded myself since I'm not currently having any CPU issues (see #4064 (comment)) and don't want to risk it at the moment.

  18. adsk-stoddai commented on Jun 18, 2020

    @adsk-stoddai

    I'm not seeing 100% utilization like some of you, but docker desktop (2.3.0.3) does seem to run high while idle with no containers (consistent 5-8% CPU on avg).

  19. cesarvarela commented on Jun 19, 2020

    @cesarvarela

    No containers running, just restarted the docker app:

    image
    edit:
    Is also eating memory:
    image

  20. Di0niz commented on Jun 22, 2020

    @Di0niz

    Same problem.

    without running containers:
    Diagnostics ID: 41F50A77-F2DF-4C5C-A655-2EF138FED2F8/20200622122245

    with running containers:
    Diagnostics ID: 41F50A77-F2DF-4C5C-A655-2EF138FED2F8/20200622122407

    ➜  ~ iStats
    --- CPU Stats ---
    CPU temp:               62.88°C     ▁▂▃▅▆▇
    
    --- Fan Stats ---
    Total fans in system:   2
    Fan 0 speed:            6392 RPM    ▁▂▃▅▆▇
    Fan 1 speed:            6857 RPM    ▁▂▃▅▆▇
    
  21. robinfhu commented on Jun 24, 2020

    @robinfhu

    After updating to macOS Catalina, I also encountered the 130% CPU usage with Docker Desktop v2.2

    After installing the Docker 2.3 update, the high CPU usage went away.

  22. ebriney commented on Jun 26, 2020

    @ebriney
    Member

    Hi everybody, we are currently actively investigating on that problem but we lack some information and we need your help.
    We added spindump in diagnostics in that (not yet released) build: https://desktop-stage.docker.com/mac/edge/46292/Docker.dmg
    If you have the chance to got cpu locks in any of our process, can you do a diagnose and put it in: docker/roadmap#12
    Thanks.

  23. stephen-turner commented on Aug 21, 2020

    @stephen-turner
    Contributor

    I'm going to dupe this against the main CPU ticket, #3499, so that we can consolidate the conversation in one place. I've just posted a new build there that you can try.

  24. docker-robott commented on Sep 20, 2020

    @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

  25. locked and limited conversation to collaborators on Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions