Giter VIP home page Giter VIP logo

Comments (6)

dbpolito avatar dbpolito commented on August 27, 2024 1

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.

fideloper avatar fideloper commented on August 27, 2024

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.

fideloper avatar fideloper commented on August 27, 2024

from vessel.

fredlahde avatar fredlahde commented on August 27, 2024

That are some neat findings @dbpolito!

from vessel.

alexagui avatar alexagui commented on August 27, 2024

Thanks!

In case anyone else was wondering where to find Remove all data.
Docker > Preferences > Reset (💣in right corner)> Remove all data

from vessel.

pchico83 avatar pchico83 commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.