-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Volumes gone after reboot #71
Comments
It could be. This plugin uses Systemd (or Upstart, but it's less supported), and I'm not super familiar with it, but I'm pretty sure you can have like a "depends on" clause and there should be some way to have it wait on the volumes... Quick Google search brought up a mount option: https://www.freedesktop.org/software/systemd/man/systemd.mount.html# |
Yeah i tried it but it didnt seem to work. for this time i just recreated all the volumes in a single command but next time i reboot i will test again.
|
Hello, Any defined volume which is using local-persist driver is gone after reboot(or local-persist service restart) Is there any direction to check to understand what is wrong ? |
@turkeryildirim I don't know for sure off the top of my head, but it may not recreate the volumes, but it persists the data so that the data is still there when you next recreate the volume with the same options. That's the main intent of this plugin: to allow data to survive and persist even if a volume is destroyed (when the volume is next created). |
@CWSpear In theory, volumes that are using local-persist driver should stay because the only difference is the driver (i guess). But if this disappearance is normal behaviour of the driver after "volume create" then i should look something different. |
I'm also affected by this, all my docker volumes are gone! Is this the intended behavior of the plugin? Is there a way to ensure the volumes are not removed after a reboot? |
In case you changed |
Thanks everyone for the pointers, no matter how long ago they were written. I ended up having both issues being on a Synology box- the modified data-root and the volumes not being mounted yet. So I had to do two modifications:
Then my volumes were still there after reboot! |
So i just rebooted my server and all i see under the service status is Couldn't find for all my volumes. They are on another drive and the docker folder is on the same drive as the data folders. Could it be that the services is starting before the data drive is mounted?
The text was updated successfully, but these errors were encountered: