1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00

Expanded docker volume plugin documentation

This proposal expande the current docker volume plugin troubleshooting possible steps to inclue a state cleanup command and a reminder that a un/reinstall don't clean up those cache files.
This commit is contained in:
remygrandin 2022-03-26 00:09:27 +01:00 committed by GitHub
parent d975196cfa
commit 6262241c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -536,6 +536,13 @@ sudo curl -H Content-Type:application/json -XPOST -d {} --unix-socket /run/docke
```
though this is rarely needed.
If the plugin fail to work properly, and only In last resort after you tried diagnosing with the above methods, you can try clearing the state of the plugin. **Note that all exiting rclone docker volume will probably have to be recreated** (This might be needed as a reinstall don't cleanup existing state files to allow for easy restoration, as stated above.)
```
docker plugin disable rclone # disable the plugin to ensure no interference
sudo rm /var/lib/docker-plugins/rclone/cache/docker-plugin.state # removing the plugin state
docker plugin enable rclone # re-enable the plugin afterward
```
## Caveats
Finally I'd like to mention a _caveat with updating volume settings_.