mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
More about usage
This commit is contained in:
parent
1efa404f45
commit
17c854b0f6
1 changed files with 10 additions and 1 deletions
11
README.md
11
README.md
|
@ -6,4 +6,13 @@ SFTP Docker image
|
|||
Usage
|
||||
-----
|
||||
|
||||
`docker run -p 2222:22 -v some-dir:/home/user/some-dir -e SFTP_USERS="user:password" -d atmoz/sftp`
|
||||
Define users and passwords in comma separated list (user1:pass1,user2:pass2), and mount filesystem as folder in user's home folder.
|
||||
|
||||
```
|
||||
docker run \
|
||||
-e SFTP_USERS="<some-user>:<password>,<another-user>:<password>" \
|
||||
-v some-dir:/home/<some-user>/some-dir \
|
||||
-v another-dir:/home/<another-user>/another-dir \
|
||||
-p 2222:22 -d atmoz/sftp
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue