laimg.blogg.se

Docker on mac very slow
Docker on mac very slow








docker on mac very slow

Using „ docker-compose exec app php /app/bin/console cache:clear“ generated the cache in 3-4 seconds. Reality breaks assumptions: Why is cache generation quick?

docker on mac very slow

  • Regenerate the Symfony cache via docker-compose exec to make sure the cache generation is not holding up the request.Ģ.
  • Enable the new experimental VirtioFS filesystem in Docker Desktop for Mac.
  • Do not share the Composer and NPM/Yarn dependency folders into the container.
  • docker on mac very slow

    Set the volume to :delegated or :cached (Edit: Turns out this is moot, but you’ll find it on the internet everywhere).So I optimized the obvious issues, that you can find in the many Docker on Mac Performance blog posts around the web: Making the wrong assumptionsįrom common experience, the first thing to blame was Docker Volume Performance.

    docker on mac very slow

    While working on the migration from Vagrant to Docker with Compose in our development setup, we were seeing extremely slow responses in the browser and I immediately made a mistake to assume I know the problem without measuring.Ī story in 7 acts. If there is, is there a pull-request/ticket/branch or something else where this work can be followed and collaborated.įile reads/writes between container and host are ~same as inside container.Journey of Profiling a Slow Development Setup Is there work on-going to improve situation.Documentation and how-to's to improve the performance (configurations?, VirtualBox instead of HyperKit?).I know this has been discussed in several issues already (such as #2707, #1592) and buried inside them may have suggestions for configurations that should improve performance or comments that docker-sync should be used etc.īut it would be nice to have the following from the Docker team: My co-workers using Linux don't have that problem I am running some IO heavy unit/integration/end-to-end test workloads that take ages to complete. I have tried with the latest version of my channel (Stable or Edge).










    Docker on mac very slow