One of my Docker Container suddenly down, and I found this is because the docker plugin disabled itself, so it caused the rclone mount volume on container has been down.
# docker plugin ls
ID NAME DESCRIPTION ENABLED
87ea7058ae96 rclone:latest Rclone volume plugin for Docker false
# docker plugin enable 87e
Error response from daemon: dial unix /run/docker/plugins/87ea7058ae96165d5104e6e96c747399a9ec7d7695580e67df3c0c48073c5b4a/rclone.sock: connect: no such file or directory
I got above error while I tried to re-enable it. After that I have remove the state file, and then it was able to enable now.
#rm /var/lib/docker-plugins/rclone/cache/docker-plugin.state
# docker plugin ls
ID NAME DESCRIPTION ENABLED
87ea7058ae96 rclone:latest Rclone volume plugin for Docker false
# docker plugin enable 87e
87e
# docker plugin ls
ID NAME DESCRIPTION ENABLED
87ea7058ae96 rclone:latest Rclone volume plugin for Docker true
Additional note: For one of my case, the docker plugin of rclone has enabled, but the docker rclone mount is still not working. So I ended up remove the rclone plugin, and reinstall it, recreate the container, then everything back to normal.
#docker plugin install rclone/docker-volume-rclone:amd64 args=”-v” –alias rclone –grant-all-permissions
Ref:
https://forum.rclone.org/t/docker-plugin-fail-to-start-reinstall/29871/5
https://rclone.org/docker/