Docker Community Forums

Share and learn in the Docker community.

Mounted volume is empty on docker-machine

Hi All, I am trying to run docker with shared volume and want to share some files from my machine to with docker-machine running locally via VirtualBox.

Runnig

docker run -it --name vd -v ~/Desktop:/Desktop r-base bash

My /Desktop folder is always empty even if my ~/Desktop folder has multiple files.

Docker inspect shows:

        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/Users/pavel/Desktop",
                "Destination": "/Desktop",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {