Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description


A volume container using rsync.


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

CID=$(docker run -d -p 10873:873 nabeken/docker-volume-container-rsync:latest)

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 /docker.

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


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

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

Using with different directory

Let's say you want to use /data rather than /docker.

First, you must launch a volume container exposing /data directory:

CID=$(docker run --volume /data -d -e VOLUME=/data -p 10873:873 nabeken/docker-volume-container-rsync)

Finally, you can mount the volumes from the container:

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