Based on Alpine linux for minimal size.
It's less than half size of any traditional Debian or Ubuntu based Dropbox image.
Run Dropbox inside Docker. Fully working with local host folder mount or inter-container linking (via --volumes-from
).
docker run -d --restart=always --name=dropbox dylansm/dropbox
docker run -d --restart=always --name=dropbox \
-v /path/to/dropbox/data:/home/user/Dropbox \
dylansm/dropbox
This way there's no need to reauthorize the container with Dropbox account, and it's possible to run multiple Dropbox instances simply by changing name and the path to dropbox settings.
docker run -d --restart=always --name=dropbox \
-v /path/to/dropbox/data:/home/user/Dropbox \
-v /path/to/dropbox/settings:/home/user/.dropbox \
dylansm/dropbox
docker run -d --restart=always --name=dropbox \
-v /etc/localtime:/etc/localtime:ro \
dylansm/dropbox
docker run -d --restart=always --name=dropbox \
-p 17500:17500 \
dylansm/dropbox
Check the logs of the container to get URL to authenticate with your Dropbox account.
docker logs dropbox
Copy and paste the URL in a browser and login to your Dropbox account to associate the container with your Dropbox account.
Running the previous command again after a few seconds, you should see something like this:
"This computer is now linked to Dropbox. Welcome xxxx"
Now your container is syncing your Dropbox.
docker exec -it $(docker ps -f name=dropbox -q | awk 'NR==1{print $1}') dropbox-cli help
Make sure to use the exact name of the container otherwise running containers with similar names like dropbox
and dropbox2
gives arbitrary result when using dropbox
in the filer.
More info about dropbox-cli
: Dropbox Wiki
docker exec -it dropbox dropbox-cli exclude list
and
docker exec -it dropbox dropbox-cli status
/home/user/Dropbox
Dropbox files
/home/user/.dropbox
Dropbox account configuration
This README
is based on Jan B's janeczku/docker-dropbox repository readme.
It is also based on zburgermeiszter's [zburgermeiszter/dropbox] (https://registry.hub.docker.com/u/zburgermeiszter/dropbox) readme!