GithubHelp home page GithubHelp logo

romainx / docker-dropbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from janeczku/docker-dropbox

0.0 1.0 0.0 16 KB

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

License: MIT License

Dockerfile 45.72% Shell 54.28%

docker-dropbox's Introduction

Dropbox in Docker

Docker Pulls License

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

This repository provides the janeczku/dropbox image.

Usage examples

Quickstart

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 \
janeczku/dropbox

Run dropbox with custom user/group id

This fixes file permission errrors that might occur when mounting the Dropbox file folder (/dbox/Dropbox) from the host or a Docker container volume. You need to set DBOX_UID/DBOX_GID 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 \
janeczku/dropbox

Enable LAN Sync

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

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

DBOX_UID
Default: 1000
Run Dropbox with a custom user id (matching the owner of the mounted files)

DBOX_GID
Default: 1000
Run Dropbox with a custom group id (matching the group of the mounted files)

$DBOX_SKIP_UPDATE
Default: False
Set this to True to skip updating to the latest Dropbox version on container start

Exposed volumes

/dbox/Dropbox Dropbox files

/dbox/.dropbox Dropbox account configuration

docker-dropbox's People

Contributors

janeczku avatar jefft avatar tytso avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.