如图,windows10 docker 挂载目录失败
我执行这个命令: docker run -i -v c:/Users/hasee/Desktop/work/paddle-docker:/paddle-docker paddlepaddle/paddle:latest-gpu /paddle-docker/train.py
然后报这个错: C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: "D:/Git/paddle-docker/train.py": stat D:/Git/paddle-docker/train.py: no such file or directory": unknown.
有谁知道原因吗?
2
zjxzhqq OP |
3
zjxzhqq OP 还是说 window 不需要挂载本地目录到 docker 里面?
|
6
zjxzhqq OP 有人知道吗
|
8
lx0758 2019-11-10 01:28:49 +08:00 via Android
挖个坟,Windows 的 docker 本质是个虚拟机,得用虚拟机里面的路径
|