#!/usr/bin/env bash set -eu # If the rclone docker plugin is already disabled this will fail saying that the volumes are still in use docker compose down --volumes || true docker plugin disable rclone || true sudo rm -f /var/lib/docker-plugins/rclone/cache/docker-plugin.state docker plugin rm -f rclone:latest || true # You will need to change arm64 to amd64 if Docker runs on a Intel/AMD x86_64 CPU docker plugin install rclone/docker-volume-rclone:arm64 args="-v" --alias rclone --grant-all-permissions docker plugin enable rclone || true # This removes the volumes if the rclone docker plugin was already disabled and thus the previous docker compose down --volu mes failed docker compose down --volumes || true ps -efa | grep "rclone serve docker" docker compose up -d --build