Git Product home page Git Product logo

docker-rsyncd's Introduction

docker-volume-container-rsync

A volume container using rsync.

Usage

First, you can launch a volume container exposing a volume with rsync.

$ CID=$(docker run -d -p 10873:873 -v /tmp/:/data --name rsyncd metabrainz/docker-rsyncd)

You can connect to rsync server inside a container like this:

$ rsync rsync://<docker>:10873/
volume          docker volume

To sync:

$ rsync -avP /path/to/dir rsync://<docker>:10873/volume/

Next, you can launch a container connected with the volume under /data.

$ docker run -it --volumes-from $CID ubuntu /bin/sh

Advanced

In default, rsync server accepts a connection only from 192.168.0.0/16 and 172.12.0.0/12 for security reasons. You can override via an environment variable like this:

$ docker run -d -p 10873:873 -e ALLOW='10.0.0.0/8 x.x.x.x/y' nabeken/docker-volume-container-rsync

All Variables

  • VOLUME - Define the volume path (default: /data)
  • ALLOW - Which network segments to allow (default: 192.168.0.0/16 172.16.0.0/12)
  • VOLUME_NAME - The logical name of the volume (default: volume)
  • COMMENT - The share comment (default: docker volume)
  • READ_ONLY - A boolean to set if the share should be read-only or not (default: true)
  • OWNER/GROUP - Define the owner/group name or uid/gid to use (default: nobody/nogroup)
  • BWLIMIT - Bandwidth limit in Kb/s (default: 0)
  • MAX_CONNECTIONS - Maximum number of connections (default: 20)

docker-rsyncd's People

Contributors

zas avatar

Watchers

Robert Kaye avatar  avatar MusicBrainz avatar James Cloos avatar Michael Wiencek avatar  avatar

Forkers

fat84

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.