docker windows下-v问题
ringa_lee
ringa_lee 2017-04-22 08:56:00
0
2
610
docker run -d -P -v $PWD:/server companyservice/tornado

我像这样启动docker为什么会报错

invalid value 'c:\\user;e:\\Pro\\xxx' for flag -v

反正就是会包含两个路径,但是$PWD我echo出来确实只有一个路径,这是什么情况?


还有一直报错xxx不是绝对路径,windows下的绝对路径应该要怎么输入?我是这样c:\code\

ringa_lee
ringa_lee

ringa_lee

reply all(2)
左手右手慢动作

Try changing : to c:xxxx.
I wonder if it conflicts with docker -v’s use of : as the delimiter

小葫芦

First you have to check whether the shared folder of the virtual box has shared the directory of your windows to the virtual machine. It is OKboot2docker 进去看下文件目录是不是存在,-v 参数要这样写 -v //c/code:/server

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!