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

Can't mount volumes #47

Closed
PetaPetaPeta opened this issue Aug 19, 2016 · 3 comments
Closed

Can't mount volumes #47

PetaPetaPeta opened this issue Aug 19, 2016 · 3 comments

Comments

@PetaPetaPeta
Copy link

PetaPetaPeta commented Aug 19, 2016

Expected behavior

Using the latest version of the Docker beta the following command should start a container and mount a directory with some files to a folder in the container:
docker run -it -v terraform/opt busybox
The files that are located in the terraform-folder on the host machine should also be located in the /opt-folder in the container.

Actual behavior

There are no files in the shared folder when the container is started.

Information

  • Diagnostic ID: E311E898-0E69-43ED-B7C2-D7D932BFC458
  • OS: Windows 10 pro, id 1607, build 14393
  • Docker info: I have shared the relevant drive in the Docker for Windows GUI. I have tried to remove the shared drive with net share C /delete and share it again to no avail.

Steps to reproduce the behavior

  1. Install the latest version of the Docker beta on latest version of Windows 10
  2. Open a terminal
  3. Run the following command: docker run -it -v terraform:/opt busybox
  4. Go to the shared folder and check for contents
@rn
Copy link
Contributor

rn commented Aug 19, 2016

As per the documentation the host source path must be an absolute path: https://docs.docker.com/engine/reference/run/#/volume-shared-filesystems

@rn
Copy link
Contributor

rn commented Aug 22, 2016

closing this issue. please re-open, if you still have issues when using the full path

@rn rn closed this as completed Aug 22, 2016
@amd5 amd5 mentioned this issue Dec 3, 2019
@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 Jun 18, 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

3 participants