I
I
Ilya Beloborodov2021-06-12 00:10:46
Docker
Ilya Beloborodov, 2021-06-12 00:10:46

Docker. Why such a difference in performance?

php artisan serve
60c3d0fdaca83937833620.png

In a docker container
60c3d10b1d26f821120680.png

Why such a difference in performance? As far as I understand, the docker container is also launched on the prod, it turns out too slowly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2021-06-12
@kowap

The author mentioned poppies.
A long-known problem with virtual machines on a poppy.
The simplest solution - on the partition you are mounting - is to prefix it with :cashed .

volumes:
- .:/application:cached

A difficult solution is to copy your files inside the virtual machine, and when saving, send the files to the virtual machine and work from there.
https://engageinteractive.co.uk/blog/making-docker...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question