W
W
WebDev2021-03-26 15:17:36
Docker
WebDev, 2021-03-26 15:17:36

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.
605dd08217b06204300913.png
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

2 answer(s)
W
WebDev, 2021-04-02
@kirill-93

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.

U
unseriously, 2021-03-26
@unseriously

https://medium.com/nuances-of-programming/%D0%BA%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question