MatchbookLab / local-persist

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

WSL - checking understanding of container installation instructions #80

Open CarlijnB opened 3 years ago

CarlijnB commented 3 years ago

Hi, I'm running local-persist (from within a container, on WSL) as a dependency for a different program that malfunctions upon reboot. I'm not sure the issue is with local-persist, but I'd like to check whether I have correctly understood local-persist installation instructions.

I run the following: docker run -d \ -v /run/docker/plugins/:/run/docker/plugins/ \ -v /root/docker_json/:/var/lib/docker/plugin-data/ \ -v /root/insaflu/docker/:/root/insaflu/docker/ \ cwspear/docker-local-persist-volume-plugin

Questions: (1) I had assumed /run/docker/plugins is a directory within the container. Is this correct? I don't have this directory in my WSL distribution - is this a problem? do I need to substitute? (2) /root/docker_json is a directory I especially created for this purpose. Is that correct usage? (I don't need to find a particular directory where certain files are stored, do I?) (3) the data I want to persist are meant to be in various subdirectories of /root/insaflu/docker/. Can I just point to the umbrella directory?

Thank you for any insights!

Carlijn