Docker mounted volume adds ;C to end of windows path when translating from linux style path

后端 未结 7 1657
后悔当初
后悔当初 2020-12-07 14:11

I\'ve found some interesting weirdness when trying to mount a docker image on windows.

I created a .sh script that does a mount of the project folder to

7条回答
  •  误落风尘
    2020-12-07 14:32

    I've actually had the same issue. Depending on if you are using Git Bash this command works(using nginx as an example):

    docker container run --name container-name -v `pwd -W` /html:/usr/share/nginx/html -p 8000:80 -d nginx

    of course you can specify the port and directory as you desire.

提交回复
热议问题