Docker Container for the Rsync Daemon based on Alpine
5.0K
Dockerfile linksThe latest Tag will automatically be updated when the alpine base image is updated
Rsyncd is a Server Daemon for rsync. It allows downloading and uploading data from the or to the server on different volumes with different permissions.
You can create a rsyncd Server using:
docker run --name rsyncd \
--volume /path/to/rsyncd/config:/config \
--volume /path/to/data:/data \
--publish 873:873 \
--detach toendeavour/rsyncd-alpine
It requires a volume storing the rsyncd.conf and another one storing the data to share. To allow connections from the outside the port 873 must be opened.
Rsyncd logs by default to the file rsyncd.log in the /log directory. It is necessary to add an additional volume to read it outside of the cointainer:
docker run --name rsyncd \
--volume /path/to/rsyncd/config:/config \
--volume /path/to/rsyncd/log:/log \
--volume /path/to/data:/data \
--publish 873:873 \
--detach toendeavour/rsyncd-alpine
Afterwarts it is possible to read the log with a command like this:
tail -f /path/to/rsyncd/log/rsyncd.log
Here is an example using docker-compose.yml with SSL:
rsyncd:
image: toendeavour/rsyncd-alpine
restart: always
ports:
- "873:873"
volumes:
- /path/to/rsyncd/config:/config
- /path/to/rsyncd/log:/log
- /path/to/data:/data
To setup rsyncd modifications to /path/to/rsyncd/config/rsyncd.conf like the following are required:
uid = nobody
gid = nobody
use chroot = no
[share]
path = /data/share/
comment = Share
read only = yes
list = yes
uid = 1000
gid = 1000
Content type
Image
Digest
Size
2.9 MB
Last updated
about 6 years ago
docker pull toendeavour/rsyncd-alpine