Skip to content

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

Notifications You must be signed in to change notification settings

mark-liu/alpine-dropbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 61.8%
  • Dockerfile 38.2%