Thank you for taking a look. The version command is there simply as a test until I can figure it out why it keeps crashing/restarting. Once that is sorted, i will use a different command to sync my files.
Below is the output from running docker ps. As you'll see, under status, it shows restarting. What happens next is that it keeps restarting:
pi@raspberrypi:~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
45ae87301317 rclone/rclone "rclone version" About an hour ago Restarting (0) Less than a second ago
Thank you, I guess it shows I'm still quite new at this! I'm still trying to wrap my head around this, though. If I remove the "restart: unless-stopped" line, rclone runs the version command and then closes/stops running. If I want to schedule a task, how would I call on rclone if it is not running? I'm sure I am missing something really basic here, so thank you for your help and patience!
I'm probably not the best for that as I wouldn't use docker with rclone as for me, it's a single binary with a single config file so I find docker overkill for that.
I use docker for every the other apps I use, but not rclone.
Thank you! I'm guessing you are using this to mount a remote? The more I think about it, the more it makes sense that rclone would stop; after all, if I give it a sync command using a standard installation, it will also stop/shut down after completing the task. A very rudimentary approach could actually take advantage of this by letting docker re-launch rclone (i.e. run the desired command) at whatever interval docker tries to restart the container.