Comments (6)
One way that helps is adding :cached
after all volumes on the docker-compose.yml
, you can see more info about it here:
https://stories.amazee.io/docker-on-mac-performance-docker-machine-vs-docker-for-mac-4c64c0afdf99
https://docs.docker.com/docker-for-mac/osxfs-caching/
I saw some good improvements here and no issues so far. I thought about opening a PR and defaulting i to cached
(linux and windows basically ignores that flag).
Also, the new version released yesterday has some good performance improvements for High Sierra:
https://docs.docker.com/docker-for-mac/release-notes/#stable-release-notes
For systems running APFS on SSD on High Sierra, use raw format VM disks by default. This improves disk throughput (from 320MiB/sec to 600MiB/sec in dd on a 2015 MacBook Pro) and disk space handling.
Existing disks are kept in qcow format, if you want to switch to raw format you need to “Remove all data” or “Reset to factory defaults”. See https://docs.docker.com/docker-for-mac/faqs/#disk-usage
You go on Docker > Preferences > Remove all data
and it will start docker from scratch using the new Docker.raw
format.
from vessel.
Yep, that's certainly a thing with Docker on Mac currently - it uses a layer of virtualization since Mac's kernal (unix) doesn't play well with Docker (which needs Linux). Unfortunately I don't have control over that (altho I don't really have requests that slow on my projects- perhaps they're smaller. Perhaps is a MacBook - laptop - vs iMac - desktop - thing with access speeds).
Valet will always be faster on Mac since it's running PHP/Nginx (or Caddy, I forget which) directly on your Mac.
from vessel.
from vessel.
That are some neat findings @dbpolito!
from vessel.
Thanks!
In case anyone else was wondering where to find Remove all data.
Docker > Preferences > Reset (💣in right corner)> Remove all data
from vessel.
We overcame this issue by synchronizing the local and the docker for mac filesystem using syncthing. We built an open source tool that follows this approach, in case it helps:
https://github.com/okteto/cnd
from vessel.
Related Issues (20)
- 403 Forbidden after installing vessel HOT 3
- US Locales are not supported HOT 1
- Change node version ? HOT 2
- Sqlite support? HOT 3
- Publish application logs to docker HOT 3
- Feature Request: Integrate Mutagen for better I/O on MacOs HOT 1
- Ability to disable installing predis HOT 1
- How to make subdomains work HOT 1
- Moving to production images HOT 2
- Slow development cycle HOT 1
- Vue Hot Reload HOT 1
- Clockwork debugger blank because of expires.conf HOT 4
- vessel art make:something always hangs for a while before returning HOT 1
- How to set MySQL root password HOT 3
- PHP 8 Support HOT 6
- failed to build HOT 2
- Laravel 7 error "Please make sure the PHP Redis extension is installed and enabled." HOT 2
- You need to install the imagick extension to use this back end HOT 1
- chown: invalid user: ‘user:user’ HOT 1
- Ambiguous ERROR: Unable to find 'docker' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vessel.