This container is no longer maintained. Please use something like janeczku/dropbox instead
Run the docker container:
docker run -d --name dropbox bennetimo/docker-dropbox
The container will start running, but it is not yet linked to your dropbox account:
docker logs dropboxand it will give you a link like:
This computer isn't linked to any Dropbox account... Please visit https://www.dropbox.com/cli_link_nonce?nonce=xxx to link this device.
Visit the link in a browser and sign it to your Dropbox account to complete the setup.
docker logs dropboxagain after a short while and you should see something like:
This computer is now linked to Dropbox. Welcome <Name>
Done! The container is now running and linked to your Dropbox :)
Dropbox folder location
The container Dropbox folder is:
Any files placed in here will be synced.
The CLI is available at /bin/dropbox.py
View sync status
docker exec my-dropbox /bin/dropbox.py status
Selective Sync (exclude a folder from sync)
docker exec my-dropbox /bin/dropbox.py exclude add /root/Docker/excludeme
See all commands
docker exec my-dropbox /bin/dropbox.py help
You can also connect to the docker container to run commands:
docker exec -it my-dropbox /bin/bash