Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the shared drives in Docker for Windows?

How to set the shared drives in Docker for Windows? I am using the latest version 18. Stable and Edge. My settings screen is shown below. It's missing some options like Shared Drives, Advanced and Network, which are shown in the second image. Why am I missing these options?

My settings: enter image description here

Screen from a website: **enter image description here**

like image 856
Tony_Henrich Avatar asked Aug 13 '18 06:08

Tony_Henrich


People also ask

How do I allocate more memory to Docker Windows?

By default, Docker Desktop is set to use 2 GB of your host's memory. To increase the RAM, set this to a higher number; to decrease it, lower the number. Swap. Configure swap file size as needed.

Where is Docker folder in Windows?

In a default installation, layers are stored in C:\ProgramData\docker and split across the "image" and "windowsfilter" directories. You can change where the layers are stored using the docker-root configuration, as demonstrated in the Docker Engine on Windows documentation.

How do I change Docker desktop from Linux to Windows?

From the Docker Desktop menu, you can toggle which daemon (Linux or Windows) the Docker CLI talks to. Select Switch to Windows containers to use Windows containers, or select Switch to Linux containers to use Linux containers (the default).


2 Answers

Seems you are Running Docker for Windows using "Windows Containers". If you switch to "Linux containers" you'll see "Shared Drives" option. Take a look this video.

According Docker documentation: shared drives for Windows containers is not implemented.

Volume mounting requires shared drives for Linux containers (not for Windows containers).

Update: Since 2018, Docker for Desktop is using a new UI. I recorded a new video showing how to solve this problem.

Update: If you are using WSL2 you will be experiencing same problem. Take a look this video.

like image 50
Alejandro Nortes Avatar answered Sep 24 '22 10:09

Alejandro Nortes


In new UIs they are placed under resources

enter image description here

like image 27
e03050 Avatar answered Sep 21 '22 10:09

e03050