Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder sharing not working with Docker Desktop v2.2.0.0 #5526

Closed
1 of 2 tasks
Holger2233 opened this issue Jan 22, 2020 · 3 comments
Closed
1 of 2 tasks

Folder sharing not working with Docker Desktop v2.2.0.0 #5526

Holger2233 opened this issue Jan 22, 2020 · 3 comments

Comments

@Holger2233
Copy link

I updated to Docker Desktop for Windows version 2.2.0.0 today and since that the folder sharing between local (Windows) host and container does not work anymore. The command
docker run --rm -v C:\dev\Tests:/tests -it test/testcafe -e chromium:headless /tests/Login.js
was working fine on my previous docker version, but since the update it returns an error:
docker: Error response from daemon: error while creating mount source path '/host_mnt/c/dev/Tests': mkdir /host_mnt/c/dev: file exists.
This is regardless of enabling drive sharing globally in the settings, or on demand via cmd windows.

Furthermore, sharing on demand does only work in Windows cmd, but not in Powershell, where the command fails with the error above straight away without sharing popup being displayed.

Please provide a fix for this asap, otherwise I will have to downgrade as well.

https://hub.docker.com/editions/community/docker-ce-desktop-windows -->

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: (downgraded to Docker v2.1.0.4 already as I need to keep working with Docker)

Expected behavior

Docker run with folder sharing works as prior to Docker update

Actual behavior

After updating Docker,
docker run --rm -v C:\dev\Tests:/tests -it test/testcafe -e chromium:headless /tests/Login.js
fails with error
docker: Error response from daemon: error while creating mount source path '/host_mnt/c/dev/Tests': mkdir /host_mnt/c/dev: file exists.

Information

  • Windows Version: Windows 10.0.18363
  • Docker Desktop Version: 2.2.0.0
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: No

Steps to reproduce the behavior

  1. update Docker
  2. build docker image using attached dockerfile
    dockerfile.zip
  3. Run command docker run --rm -v C:\dev\Tests:/tests -it test/testcafe -e chromium:headless /tests/Login.js with either C: drive shared in the Docker settings or using sharing on demand.
@mat007
Copy link
Member

mat007 commented Jan 22, 2020

Hi, thanks for reporting this, it looks the same as #5516, right?

@stephen-turner
Copy link
Contributor

Resolving as duplicate. #5516 has an explanation and workaround.

@docker-robott
Copy link
Collaborator

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

@docker docker locked and limited conversation to collaborators Jul 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants