by janeczku

janeczku / docker-dropbox

:whale: Dropbox in a Docker image. This works.

136 Stars 136 Forks Last release: Not found MIT License 24 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Dropbox in Docker

Docker Pulls License

Run Dropbox inside Docker. Fully working with local host folder mount or inter-container linking (via


This repository provides the janeczku/dropbox image.

Usage examples


docker run -d --restart=always --name=dropbox janeczku/dropbox

Dropbox data mounted to local folder on the host

docker run -d --restart=always --name=dropbox \
-v /path/to/localfolder:/dbox/Dropbox \

Run dropbox with custom user/group id

This fixes file permission errrors that might occur when mounting the Dropbox file folder (

) from the host or a Docker container volume. You need to set
to the user id and group id of whoever owns these files on the host or in the other container.
docker run -d --restart=always --name=dropbox \
-e DBOX_UID=110 \
-e DBOX_GID=200 \

Enable LAN Sync

docker run -d --restart=always --name=dropbox \
--net="host" \

Linking to Dropbox account after first start

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.

docker logs dropbox

You should see something like this:

"This computer is now linked to Dropbox. Welcome xxxx"

Manage exclusions and check sync status

docker exec -t -i dropbox dropbox help

ENV variables



Run Dropbox with a custom user id (matching the owner of the mounted files)



Run Dropbox with a custom group id (matching the group of the mounted files)



Set this to
to skip updating to the latest Dropbox version on container start

Exposed volumes

Dropbox files

Dropbox account configuration

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.