docker-volume-netshare icon indicating copy to clipboard operation
docker-volume-netshare copied to clipboard

NFS volumes gone after reboot

Open buster3 opened this issue 7 years ago • 2 comments

please reopen #33

buster3 avatar Mar 13 '17 08:03 buster3

Looking at the docker volume plugin documentation, it seems that persisting information about created volumes must be done in the driver itself.

What docker volume ls does is to call the volume drivers' GetList function. The VolumeManager (mounts.go) currently does not persist any of its metadata. This is why the driver does not report any available mounts to docker.

The proposed workaround of calling docker volume create after every restart cannot be applied if containers are set up with a restart policy.

I have started working on a PR. This might take a bit since I am new to Go, though.

tbd-vam avatar Jan 27 '18 16:01 tbd-vam

I'm done with a basic prototype: https://github.com/axel-wilczek/docker-volume-netshare/tree/feature/issue-33

Help with testing would be appreciated, especially for other drivers besides nfs.

tbd-vam avatar Jan 28 '18 13:01 tbd-vam