Docker CPU usage is overheating MBP 2015

Expected behavior

The expected behavior is for Docker to not use over 180% CPU running a simple docker-compose up

Actual behavior

High CPU usage and instant overheat


Docker for Mac: version: mac-v1.12.0-beta21.1
OS X: version 10.11.5 (build: 15F34)
logs: /tmp/8B41701C-2F45-4B97-AB9A-36FE88679454/20160810-190100.tar.gz
[OK]     docker-cli
[OK]     app
[OK]     moby-syslog
[OK]     disk
[OK]     virtualization
[OK]     system
[OK]     menubar
[OK]     osxfs
[OK]     db
[OK]     slirp
[OK]     moby-console
[OK]     logs
[OK]     vmnetd
[OK]     env
[OK]     moby
[OK]     driver.amd64-linux

Steps to reproduce the behavior

  1. docker-compose.yml with php+apache + redis + beanstalkd + elasticsearch + mongodb, mapped project folder to some of them.
  2. docker-compose up
  3. That’s it.
1 Like

Hi Ravan,

Could you please supply an example reproduction of the behavior you experience? Just a docker-compose.yml that loads the mode that you describe would be very valuable in figuring out the cause of the CPU utilization.

My guess is that you have some software that is polling the mapped file system for changes. This will cause lots of messages through a number of processes and increase CPU use. If this is the issue, I recommend looking for an alternative that uses inotify events.

Of course, the issue could be something else which is a big reason why a reproduction is necessary to continue investigation.