metabrainz/docker-rsyncd

Name: docker-rsyncd

Owner: MetaBrainz Foundation

Description: null

Created: 2016-10-31 12:34:45.0

Updated: 2016-10-31 12:46:31.0

Pushed: 2016-10-31 12:46:30.0

Homepage: null

Size: 3

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

docker-volume-container-rsync

A volume container using rsync.

Usage

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

D=$(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:

ync rsync://<docker>:10873/
me          docker volume

To sync:

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

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

cker 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:

cker run -d -p 10873:873 -e ALLOW='10.0.0.0/8 x.x.x.x/y' nabeken/docker-volume-container-rsync
All Variables
Based on https://github.com/InAnimaTe/docker-rsync

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.