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 desktop missing shared drives and advanced options for linux containers #7143

Closed Heloise-Chauvel closed 4 years ago

Heloise-Chauvel commented 4 years ago

Expected behavior

The "shared drives" and "Advanced" options should been visible on my docker desktop app, because this is the Linux containers conf.

Actual behavior

They are missing. Please see my Diagnostics ID and Screenshot attached.

Note : I Don't see my VM in Hyper-V Note 2 : I had to execute these lines in PowerShell to switch to Windows Containers (otherwise I got errors) Disable-WindowsOptionalFeature -FeatureName microsoft-hyper-v -online restart-computer Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All restart-computer Enable-WindowsOptionalFeature -Online -FeatureName Containers -All

Information

Steps to reproduce the behavior

  1. Download Docker Desktop from official page for Windows - stable (https://www.docker.com/products/docker-desktop)
  2. Install it
  3. Navigate to Dashboard > Resources : 2 options missing (shared drives ans Advanced)
Heloise-Chauvel commented 4 years ago

Issue7143

alvesfers commented 4 years ago

image

stephen-turner commented 4 years ago

@Heloise-Chauvel Are you using the WSL 2 integration instead of Hyper-V for your Linux containers?

Heloise-Chauvel commented 4 years ago

Thank you @stephen-turner ! I unchecked the option and now it's working.

Heloise-Chauvel commented 4 years ago

I wanted to upload a Screenshot but it is not working. The option to un check is : Use the WSL 2 based engine

WSL 2 provides better performance than the legacy Hyper-V backend. Learn more.

stephen-turner commented 4 years ago

OK, good,, thanks for letting us know. We would encourage you to use WSL 2 if you can though, it's generally a better experience (especially if you keep your files in WSL 2 not in the Windows file system).

julien-campbell commented 4 years ago

Hi,

I am having the same problem as explained above where Shared Drives does not appear. 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?

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.

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

I answered this in #7199. I'm going to close this ticket now.

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