Tony_Henrich
Tony_Henrich

Reputation: 44165

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**

Upvotes: 10

Views: 35875

Answers (3)

Alejandro Nortes
Alejandro Nortes

Reputation: 694

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.

Upvotes: 17

SergeS
SergeS

Reputation: 11779

Ended up here, because the "Shared drives" was missing on my docker settings. If you are missing it too, but docker is set for linux container then it is because WSL 2.

Because if you are using Docker on WSL 2, there is no such option, but you can directly attach volumes from filesystem with docker run -v c:\...\your-folder:/mount ... without specifying it in docker settings.

Upvotes: 9

e03050
e03050

Reputation: 1582

In new UIs they are placed under resources

enter image description here

Upvotes: 9

Related Questions