E
E
Eugene2022-01-25 13:40:39
macOS
Eugene, 2022-01-25 13:40:39

What are the options to speed up Docker on Macbook?

I decided, purely out of curiosity, to buy a poppy because of its autonomy, since nothing had bribed me to take a poppy before. I bought a proshka for 21 years. I installed everything I needed, downloaded the docker for Apple Silicon. I'm working for the second week, and specifically I see a drop in performance compared to Linux by 5 times if not 10. Everything is dull - Base, Nginx, php-fpm. Are there any options to speed up the work or is it just an option to endure such slow work?

Docker with allocated resources
61efd3a2123b6341107949.png

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Armenian Radio, 2022-01-25
@gbg

I propose to think with your brains (not literally), and realize that autonomy is achieved, among other things, due to a significant reduction in voltages, frequencies, sending the cores offline and other tricks. Therefore, we can talk about some kind of speed only when working from an outlet (a suitcase with power banks) and turning off all energy saving.

I
Igor Vorotnev, 2022-01-26
@HeadOnFire

Docker on M1 is still dumb. If you have a question on the *EMP stack, use homebrew + laravel/valet and if you need a gui - phpmon .

M
Maxim Babichev, 2022-01-25
@REZ1DENT3

docker-sync

R
Roman Chebotaev, 2022-01-25
@roman23ch

As far as I know, docker works directly on Linux, and on Mac and Windows through an emulator.

B
batyrmastyr, 2022-02-03
@batyrmastyr

Briefly: run under Linux.
More details: a virtual machine to your taste, it has Linux to choose from, it has a docker. Get a speed drawdown of 1.5 - 2 times, but (1) it's still an order of magnitude better than shit called "docker for poppy" (2) loads percent only when necessary, and not permanent 100% on one of the cores.
Features:
1. pass the code through the shared folder.
Problems with forwarding folders:
1. Since virtual machines do it like network drives, file change tracking (gulp/webpack/esbuild - watch ) will fall off tightly.
2. PostgreSQL will not be able to start, so the database files are only inside Linux.
3. With Virtual Box there were some other rakes because of the rights to the files. It seems it turned out that he reads them normally, but they are not created from under the docker.
The combination of Parallels Desktop 12 (yes, I honestly bought it a long time ago) and Debian 10 started up, but I had to look for instructions on installing fresh additions / drivers for the guest OS. With the current Parallels add-ons should be delivered without squats.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question