MatchbookLab / local-persist

Create named local volumes that persist in the location(s) you want
MIT License
851 stars 122 forks source link

Error response from daemon: error while creating mount source path in windows #74

Open wangyiran125 opened 4 years ago

wangyiran125 commented 4 years ago

when i execute in windows docker run -d -v /run/docker/plugins/:/run/docker/plugins/ -v /path/to/store/json/for/restart/:/var/lib/docker/plugin-data/ -v D:postgresdatavolume:D:postgresdatavolume cwspear/docker-local-persist-volume-plugin report error

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: invalid mode: postgresdatavolume. See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.

then change to execute

docker run -d  -v /run/docker/plugins/:/run/docker/plugins/    -v /path/to/store/json/for/restart/:/var/lib/docker/plugin-data/   -v //D/postgresdatavolume://D/postgresdatavolume     cwspear/docker-local-persist-volume-plugin

report error

b1a58c7e0bec0fa69bb7239f439eb16e77b4f5521a3cea1d1dcaf4c30d56f004 C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: error while creating mount source path '/D/postgresdatavolume': mkdir /D: file exists.