|
Post by sascanagl on Nov 8, 2021 15:18:15 GMT
From user: I’m going through the “ Run In Docker” section on the page SeleniumPlus Welcome Doc and I got stuck on step 4. I can’t find any options in Docker to share the C drive. Is there a different way to share the C drive with a newer version of Docker? I’ve got Docker Desktop 4.1.1 (69879) Answer: Web search finds a StackOverflow article: Can't Find Shared Folder Options in Docker Desktop which says: "The File sharing tab is only available in Hyper-V mode, because in WSL 2 mode and Windows container mode all files are automatically shared by Windows."
If you are using “WSL 2”, you don’t need to share the local folder yourself, it is shared automatically. You should be able to mount Windows local folder to the container’s folder as shown below. Here we mount the local C:/temp folder to the container's /tmp/temp location: docker run -v C:/temp:/tmp/temp …more options... Make sure you Disable/Uncheck the " Use the WSL 2 based engine" in your Docker Desktop " General" configuration settings for this to work. You will likely have to stop/restart Docker Desktop and/or any running containers for the setting changes to take affect.
|
|