Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.93 KB

README.md

File metadata and controls

67 lines (45 loc) · 1.93 KB

Alpine Dropbox

A minimal Alpine (glibc) docker container that runs a headless Dropbox client.

Quickstart

docker run -d \
--name dropbox \
--restart=unless-stopped \
-v /path/to/localfolder:/dbox/Dropbox \
-v /path/to/localconfigfolder:/dbox/.dropbox \
axllent/alpine-dropbox

The first time the container is run it downloads the latest version of the Dropbox client. There is no updater script, so if you need to update the Dropbox client then simply remove the container and add it again.

Authorise the client

The first time you run you will need to authorise the Dropbox client.

Authorise the client

The first time you run you will need to authorise the Dropbox client.

After starting your container, run docker logs dropbox -f and wait until you see something like:

This computer isn't linked to any Dropbox account...
Please visit https://www.dropbox.com/cli_link_nonce?nonce=48fb804e2fa486b152db480a36ef5923 to link this device.

Open that link in your browser and authorise the client to access your dropbox.

Running as custom user/group

The image will by default run with user/group id of 1000. You can change this to suit your current user by adding the UID & GID environment variables.

docker run -d \
--name dropbox \
--restart=unless-stopped \
-v /path/to/localfolder:/dbox/Dropbox \
-v /path/to/localconfigfolder:/dbox/.dropbox \
-e UID=1001 \
-e GID=1001 \
axllent/alpine-dropbox

Interacting with dropbox-cli

Dropbox commands should be run as the dbox user:

docker exec -it -u dbox dropbox dropbox-cli help

Any custom configuration that is supported by the dropbox-cli can be modified this way.

Dropbox status

The current Dropbox status can be seen in the docker log. It refreshes every second and only outputs data when the data changes as not to spam the log with irrelevant info.

docker logs dropbox -f