docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 288 forks source link

Docker -Cannot see option to Share Drives in Settings -Windows 10 Home #7199

Closed julien-campbell closed 4 years ago

julien-campbell commented 4 years ago

Hi,

I have the problem where I cannot the see the option to Share Drives on Docker settings. image

I am already switched to Linux Containers. image

However, I am running on Windows 10 Home so I do not have the option to unselect "Use the WSL 2 based engine" as in brackets it says "Windows Home can only run the WSL 2 backend". Is there a way to solve this?

image

My end goal is to share my c drive on my windows computer to a linux container I am trying to run called madslupe/hddm. This is because when I run my container with the command:

docker run -it --rm -v c:/school/2020_summer_research/analysis_data/dir_of_data_and_notebook/:/home/jovyan/data -p 8888:8888 madslupe/hddm jupyter notebook

I get a URL which I open to an interface of Jupyter Notebook (as expected) and the file folder I open called "data" is empty, where I am expecting it to contain all my data and analyzing scripts.

image

Is this due to the c drive not being shared? Or is this an error relating to mounting in my command line I typed out or something else?

stephen-turner commented 4 years ago

Windows 10 Home can only run Docker in WSL 2 mode because Windows 10 Home can't run Hyper-V. But WSL 2 is better anyway. You don't need the file sharing options because all your files are already available to WSL 2.

Your command looks correct to me, assuming you're running it from PowerShell. Does it list the files correctly if you run docker run -it -v c:/school/2020_summer_research/analysis_data/dir_of_data_and_notebook/:/home/jovyan/data ubuntu ls /home/jovyan/data

julien-campbell commented 4 years ago

Thank you for the quick reply! I am new to this so I appreciate the help. I found my mistake, turned out I had saved the directory as containing the spelling "note_book" and I was typing in "notebook" in the command. It was a simple mistake.

docker-robott commented 4 years ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked