Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Massive performance difference between docker-for-mac and docker-machine #689

arthurlm44 opened this Issue Sep 21, 2016 · 4 comments


None yet
6 participants
Copy link

arthurlm44 commented Sep 21, 2016

Expected behavior

Performance equal to docker-machine

Actual behavior

Much slower than docker-machine


Using docker-compose to start and run a mysql container.
Running a Rails application natively on OSX host.
When running Rails migrations, against the dockerized mysql container, I'm getting massive performance differences between docker-for-mac and docker-machine (using virtualbox)

real 10m29.800s user 0m11.336s sys 0m3.192s

real 0m32.145s user 0m9.637s sys 0m2.719s

That is a 20x performance difference.

Is this caused by xhyve limitations? Should we expect docker-for-mac performance issues to be addressed? The performance issues, unfortunately, are stopping us from using docker for local development on OSX.


This comment has been minimized.

Copy link

jamesdixon commented Sep 22, 2016

@arthurlm44 I can confirm that I'm also seeing MAJOR performance issues when comparing Docker for Mac and Docker Machine.


I actually tried three different configurations:

  1. Node 6 app locally on OS X Yosemite, Redis and Postgres on Docker Machine
  2. Node 6 app, Redis and Postgres all running on Docker Machine
  3. Node 6 app, Redis and Postgres all running on Docker for Mac

I ran a test suite that contains a little over 300 tests. Here are my results:

Config 1 (Local + Docker Machine): ~5 minutes
Config 2 (Docker Machine): ~7 minutes
Config 3 (Docker for Mac): ~18 Minutes

Versions: running Docker Toolbox 1.12 and Docker for Mac 1.12


This comment has been minimized.

Copy link

bobbypriambodo commented Sep 22, 2016

I believe this is a duplicate of a known issue (and currently being worked on) as stated in #668 and #677?


This comment has been minimized.

Copy link

flyandi commented Sep 23, 2016

So is this issue related to File I/O performance problems as well?


This comment has been minimized.

Copy link

dsheets commented Sep 24, 2016

This issue is likely a duplicate of #668 which tracks a recent performance regression in Docker for Mac's block storage layer related to disk flushing.

If this is using -v bind mounts from the host OS X system or compose volumes with OS X paths, this issue is a duplicate of #77.

If you believe that neither of these issues is the same as your issue, please feel free to re-open this issue with additional details to help us understand the problem you are experiencing. Thanks for using Docker for Mac!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.