Mount rclone paths before docker gets started

What is the problem you are having with rclone?

Rclone file paths are getting mounted after docker gets started

Run the command 'rclone version' and share the full output of the command.

rclone v1.62.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-1044-oracle (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.20.2
- go/linking: static
- go/tags: none

No

Which cloud storage system are you using? (eg Google Drive)

Google's Shared Drive & Onedrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

This is the command I used to mount rclone in my machine

rclone mount --allow-other --allow-non-empty --vfs-cache-mode writes -v Onedrive: /home/ubuntu/Onedrive &
rclone mount --allow-other --allow-non-empty --vfs-cache-mode writes -v YeetersShows:/home/ubuntu/YeetersShows &

This is the command I have in crontab -e

@reboot sleep 30 && rclone mount --allow-other --allow-non-empty --vfs-cache-mode writes -v Onedrive: /home/ubuntu/Onedrive &
@reboot sleep 30 && rclone mount --allow-other --allow-non-empty --vfs-cache-mode writes -v YeetersShows:/home/ubuntu/YeetersShows &

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

Not applicable

A log from the command that you were trying to run with the -vv flag

Not applicable

I tried editing override.conf like:


But now after systemctl reload docker and a host restart, I have to manually do systemctl restart docker' else I cant access my containers via ip:port`

For systemd, I use services to enforce my startup.

I"ll share an example for 'media.service' or you can use more than one.

[felix@gemini system]$ cd docker.service.d/
[felix@gemini docker.service.d]$ cat override.conf
[Unit]
After=media.service
Requires=media.service

or

[felix@gemini system]$ cd docker.service.d/
[felix@gemini docker.service.d]$ cat override.conf
[Unit]
After=rclone-one.service rclone-two.service
Requires=rclone-one.service rclone-two.service

That means that it has to start and be running. If my rclone services go down, it automatically shuts down my docker.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.