mirror of
https://github.com/Fishwaldo/docker-rsync.git
synced 2025-07-07 21:28:20 +00:00
docs: remove new lines to fix broken docker hub docs rendering
This commit is contained in:
parent
5830ae22d2
commit
a78d353f28
1 changed files with 3 additions and 7 deletions
10
README.md
10
README.md
|
@ -1,23 +1,19 @@
|
||||||
# rsync
|
# rsync
|
||||||
|
|
||||||
A minimalist image with rsync daemon. It is intended to be used as a volume and shared among containers where
|
A minimalist image with rsync daemon. It is intended to be used as a volume and shared among containers where standard volume sharing results in poor read performance.
|
||||||
standard volume sharing results in poor read performance.
|
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
The simplest use case is to run the image and map its 873 port:
|
The simplest use case is to run the image and map its 873 port:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run stefda/rsync -p 873:873
|
$ docker run stefda/rsync -p 873:873
|
||||||
```
|
```
|
||||||
|
|
||||||
The command above spins up a container that will listen on port 873 for connections over the native rsync protocol.
|
The command above spins up a container that will listen on port 873 for connections over the native rsync protocol. Syncing files is then as easy as `rsync -rtR <file-or-directory> rsync://<docker-host-ip>:873/volume`.
|
||||||
Syncing files is then as easy as `rsync -rtR <file-or-directory> rsync://<docker-host-ip>:873/volume`.
|
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
The module path, owning user, group and allowed hosts are all configurable via environmental variables. Launch fully
|
The module path, owning user, group and allowed hosts are all configurable via environmental variables. Launch fully customised container like so:
|
||||||
customised container like so:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run stefda/rsync -p 873:873 -e VOLUME=/my/volume -e USER=www-data -e GROUP=www-data -e ALLOW="192.168.0.0/16 10.0.0.0/16"
|
$ docker run stefda/rsync -p 873:873 -e VOLUME=/my/volume -e USER=www-data -e GROUP=www-data -e ALLOW="192.168.0.0/16 10.0.0.0/16"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue