I use docker and compose for my day to day devvelopment work, mostly I’m working on a Django application. I currently use docker-machine on VMWare Fusion, which works well.
Virtually no CPU usage when the application is idle. And low usage when browsing around in the application. (using the vmware-fusion setup with docker machine as a reference point.)
The CPU usage for com.docker.driver.amd64-linux sits at around 100% and the osxfs process at around 50% while the application is idle. Disabling auto-reload takes care of this problem, but that is just a workaround as the autoreload feature is really useful. With autoreload disabled the CPU usage for both processes drops down to around 0%, which is the expected behaviour.
When browsing around on the Django application the CPU usage for the com.docker.driver.amd64-linux jumps to around 50%, the osxfs process has negligible CPU usage.
$ pinata diagnose -u MA-2065 
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta8.2
Running diagnostic tests:
[OK] Moby booted
Docker logs are being collected into /tmp/20160422-101846.tar.gz
Most specific failure is: No error was detected
Your unique id is: 08EE91BC-5DDA-496A-99C4-3446D2042370
Please quote this in all correspondence.
Edit: I did some further digging and it looks like the network is part of the problem, even a simple Go application running inside Docker spikes the CPU to around 50% when responding to a HTTP query, and the response is really slow, on the order of seconds. In the vmware setup it responds in <10ms.
Steps to reproduce the behavior
Run a Django 1.5 application inside a centos7 container.