0

I am using Docker version 18.09.2 on windows 10. I want to mount a folder into linux container using command

docker run -it -v C:\work:/mnt/data/work ubuntu bash

when in new console I check the container by using command

 docker inspect new_Created_Container_Name

This is the result :

 "Mounts": [
                {
                    "Type": "bind",
                    "Source": "/host_mnt/c/work",
                    "Destination": "/mnt/data/work",
                    "Mode": "",
                    "RW": true,
                    "Propagation": "rprivate"
                }

I believe that changing somehow the propagation value from rprivate to shared would solve the problem. Is there easy way to achieve that ??

Ania
  • 231
  • 2
  • 2
  • Possible duplicate: [Docker tries to mkdir the folder that I mount](https://stackoverflow.com/q/50817985/596285) – BMitch Mar 06 '19 at 15:19
  • Reset credentials did not change the type of Propagation but I can see all files from my host machine in the bash container – Ania Mar 07 '19 at 09:58

1 Answers1

0

Docker runs inside of an embedded VM in windows. From the host you need to share the drive to the VM for the host volumes to work inside of docker. There is a setting for this in the Docker preferences, and if you change your password, you may need to reconfigure this sharing.

Docker for Windows sharing

BMitch
  • 231,797
  • 42
  • 475
  • 450