Answer the question
In order to leave comments, you need to log in
How to use WSL with docker?
Hello! When running docker on Windows, I get a warning that docker will be slow (it is) because the Windows filesystem is mounted.
The point is that my C drive, on which I have a project, is available for docker via /mnt/c and this is, as it were, an external resource for it. It is recommended to store all files in the linux subsystem. This recommendation works, indeed, if you do not use volumes, then the docker works quickly.
But how to live with it? Move project to C:\Users\MyUser\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\rootfs
and open it at that address in IDE? Tried, there are some problems with the rights to edit arise.
Is there anyone who develops on Windows using docker?
Thank you.
Answer the question
In order to leave comments, you need to log in
Understood. Docker on windows today can only be used if you do not use volumes. In my example, you need to create a Dockerfile and run a command in it that will copy the contents of the mounted directories inside the container, and remove volumes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question