MatchbookLab / local-persist

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

Not working on windows 10 WSL 2 #77

Open joecabezas opened 4 years ago

joecabezas commented 4 years ago

I could not make it work using the docker image provided in a fresh install of WSL 2 over ubuntu 1804 on windows 10:

➜  ~ docker run -d \
>     -v /run/docker/plugins/:/run/docker/plugins/ \
>     -v ~/docker/plugins/local-persist/:/var/lib/docker/plugin-data/ \
>         cwspear/docker-local-persist-volume-plugin
39e02fe167848fdc03d4c2128fb88c0449a0f6a6c7ba34e717beceee32ed13cb
➜  ~ docker volume create -d local-persist -o mountpoint=~/docker/volumes/test/ --name=test
Error response from daemon: create test: error looking up volume plugin local-persist: plugin "local-persist" not found
➜  ~ uname -a
Linux DESKTOP-R1CGUQ3 4.19.84-microsoft-standard #1 SMP Wed Nov 13 11:44:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

My only guess is that I screwed up the real path for plugins /run/docker/plugins/, since it does not exist