How can I share a folder between my Windows files and a docker container, by mounting a volume with simple --volume
command using Docker Toolbox on?
I'm using "Docker Quickstart Terminal" and when I try this:
winpty docker run -it --rm --volume /C/Users/myuser:/myuser ubuntu
I have this error:
Invalid value "C:\Users\myuser\:\myuser" for flag --volume: bad mount mode specified : myuser
See 'docker run --help'.
Following this, I also tried
winpty docker run -it --rm --volume "//C/Users/myuser:/myuser" ubuntu
and got
Invalid value "\\C:\Users\myuser\:\myuser" for flag --volume: myuser is not an absolute path
See 'docker run --help'.
question from:https://stackoverflow.com/questions/33126271/how-to-use-volume-option-with-docker-toolbox-on-windows