How to get a better disk performance in Docker for Mac

Step zero: macOS High Sierra

Step one: Download and install the Edge version

Step two: Disk.raw

Step three: Use cache flags

docker run -v ./html:/var/www/html:cached nginx
version: "3.4"
services:
nginx:
image: nginx:alpine
ports:
- 80:80
volumes:
- ./html:/var/www/html:cached
version: "3.4"
services:
nginx:
volumes:
- ./html:/var/www/html:cached

Tip: Restart Docker for Mac

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tom Keur

Tom Keur

More from Medium

Create a Custom CLI Tool and Distribute with HomeBrew Using Goreleaser and Github Actions

Getting started with GitHub Actions

Getting started with Husky and Lint-staged for pre-commit hooks

TWIL: Deploying Node.js to Azure App Service with GitHub Actions