docker toolbox mount file on windows

后端 未结 4 818
鱼传尺愫
鱼传尺愫 2020-12-25 14:18

I am a beginner with docker and I am using a windows machine. But I have a problem mounting files using volumes. The documentation says the following thing about mount files

4条回答
  •  再見小時候
    2020-12-25 14:45

    Try to run it with additional / for volume like:

    docker run -d --name simple2 -v /c/Users/src://usr/share/nginx/html -p 8082:80 ng1
    

    Or even for host OS, as

    docker run -d --name simple2 -v //c/Users/src://usr/share/nginx/html -p 8082:80 ng1
    

    Due to this issue:

    This is something that the MSYS environment does to map POSIX paths to Windows paths before passing them to executables.

提交回复
热议问题