Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run Dropbox in a Docker container via systemd
[Unit]
Description=Dropbox Service
After=docker.service network.target
[Service]
Type=simple
User=MY_USERNAME
ExecStartPre=-/usr/bin/docker rm dropbox
ExecStart=/usr/bin/docker run \
--name=dropbox \
-v /home/MY_USERNAME/Dropbox:/dbox/Dropbox \
-v /home/MY_USERNAME/.dropbox:/dbox/.dropbox \
-e DBOX_UID=MY_UID \
-e DBOX_GID=MY_GID \
janeczku/dropbox
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.