The default Docker for Mac file performance can be bad. Here are some small tips to improve disk I/O for Docker for Mac. Follow these small steps to get a better disk performance in Docker for Mac.
- How To Improve Mac Performance
- Download Docker For Mac
- Docker For Mac Performance 2018 Mustang
- Mac Performance Midwest
- Docker is a full development platform for creating containerized apps, and Docker for Mac is the best way to get started with Docker on a Mac. See Install Docker for Mac for information on system requirements and stable & edge channels.
- A fresh install of Docker for Mac on a fresh install of OSX this morning sees CPU usage hovering at 35-50% and Activity Monitor's 'Energy Impact' rating for Docker sitting around ~70, which is absurdly high.
- When running out of disk space, because of the size of the Docker.qcow2 file, the only reliable solution is to delete this file and start with an empty VM image (stop Docker for Mac, delete the file, then restart Docker for Mac).
I am using docker for all my development. I used to have a ubuntu laptop for my primary development machine, now I switched to Mac. Performance is much slower on Mac though. For an app i managed to bind the volume as read-only as the PHP app is sandboxed and does not write to disk. But instead if I work with Laravel or other stuff in a container, volume speeds are low.
How To Improve Mac Performance
I am using NFS with d4m-nfs and the speed improves a bit.
Download Docker For Mac
Also I downloaded the edge version for D4M and tried to bind the volume as delegated. The speed improves a bit more but only when doing a command for two times. The first time is still slow.
Here is a short gif demonstrating times running a simple php command first time and second time. Second time is in 0.4 seconds, faster, but still a bit slow (0.01 on host).
Docker For Mac Performance 2018 Mustang
Are there any things i should do to improve the speed on Mac? And please, don't tell me to switch to linux :). I am ok with mac, just want a little more juice form Docker on Mac.