Rrsync (restricted rsync) docker container.
To create the image
bbinet/rrsync, execute the following command in the
docker build -t bbinet/rrsync .
You can now push the new image to the public registry:
docker push bbinet/rrsync
Then, when starting your rrsync container, you will want to bind ports
from the rrsync container to a host external port.
The rrsync container will write uploaded data to a volume in
/data, so you
may want to bind this data volume to a host directory or a data container,
which should be writable for user uid 500.
You also need to provide a read-only
authorized_keys file that will be use to
allow some users to rsync data based on their public ssh key.
$ docker pull bbinet/rrsync $ docker run --name rrsync \ -v authorized_keys:/config/authorized_keys:ro \ -v /home/rrsync/data:/data \ -p 22:22 \ bbinet/rrsync