mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-24 12:59:24 -05:00
Update README.md
This commit is contained in:
parent
956f0cdf8f
commit
097d4893a4
1 changed files with 11 additions and 4 deletions
15
README.md
15
README.md
|
@ -6,13 +6,20 @@ SFTP Docker image
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
Define users and passwords in comma separated list (user1:pass1,user2:pass2), and mount filesystem as folder in user's home folder.
|
|
||||||
|
- Define users and passwords in comma separated list with SFTP_USERS ("user1:pass1,user2:pass2").
|
||||||
|
- Mount volumes in user's home folder.
|
||||||
|
|
||||||
|
The users are chrooted to their home folders, so it is important to mount the volumes in separate folders inside the user's home folder (/home/<user>/**<your-folder>**).
|
||||||
|
|
||||||
|
Example
|
||||||
|
-------
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run \
|
docker run \
|
||||||
-e SFTP_USERS="<some-user>:<password>,<another-user>:<password>" \
|
-e SFTP_USERS="foo:pass,bar:pass" \
|
||||||
-v some-dir:/home/<some-user>/some-dir \
|
-v "ebooks:/home/foo/ebooks" \
|
||||||
-v another-dir:/home/<another-user>/another-dir \
|
-v "http:/home/bar/http" \
|
||||||
-p 2222:22 -d atmoz/sftp
|
-p 2222:22 -d atmoz/sftp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue