window7下docker toolbox 启用数据卷报错: Error response from daemon: invalid mode:
场景:希望把d:\dockerShare文件夹作为数据卷 ,和docker中的centos镜像生成的容器关联。
原来的命令:
docker run -d -it --name=edc-centos7 -v edc-centos7-vol:D:\dockershare centos:latest
报错:
d:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: invalid mode: \dockershare. See 'd:\Program Files\Docker Toolbox\docker.exe run --help'.
改为:
docker run -d -it --name=edc-centos7 -v edc-centos7-vol:/d/dockershare centos:latest