Docker Community Forums

Share and learn in the Docker community.

Docker Settings: no "Shared Volumes" tab

docker

(Jerryb) #1

Running Windows 10. I want to share a disk drive with containers. However, when I to go Docker Settings, I do not see the tab for Shared Volumes, How can I set that up?

This is what I see (There is no Shared Volumes tab):


(Michael Friis) #2

When using Windows containers or LCOW no setting is required


(Jerryb) #3

OK, but then how do I expose a host drive to my container? Following the docs I should do something like

docker -v d:\:d:\

to share my D: drive as drive D: with my Windows container

but I tried that and it doesn’t work:

docker: Error response from daemon: container cb40d93ef5ae53f0b3b8061bd6eaaf559b03f825c9a323ee7c9767c0b5ea1836 encountered an error during Start: failure in a Windows system call: The compute system exited unexpectedly. (0xc0370106).


(Alancapc) #4

any luck on solving this specific error, @jerryb?


(Jerryb) #5

Nope, I still no way to do this.


(Alancapc) #6

OK, I believe this might help you as it helped me:

Instead of creating the volume from within the docker file like this:

.DOCKERFILE

VOLUME  D:\

I actually created like Elton S. did in his Docker labs example:

At container run in command line:

docker container run --volume D:\<host_path>:D:\<container_path>

By removing the creation of the volume from the docker file and passing it to the run command it worked. :slight_smile:

Could you tell me if this works for you as well?

Cheers, Jerry.


(Mtpultz) #7

Did you try using these absolute path formats:

C://some/folder/path
//c/some/folder/path