mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Update README.md
This commit is contained in:
parent
a4bbfccbb2
commit
5353d708ba
1 changed files with 16 additions and 7 deletions
23
README.md
23
README.md
|
@ -1,25 +1,34 @@
|
||||||
sftp
|
sftp
|
||||||
====
|
====
|
||||||
|
|
||||||
SFTP Docker image
|
Simple and easy to use SFTP server based on Debian
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
||||||
- Define users and passwords in comma separated list with SFTP_USERS ("user1:pass1,user2:pass2").
|
- Define users and passwords in comma separated list with SFTP_USERS ("user1:pass1,user2:pass2").
|
||||||
- Mount volumes in user's home folder.
|
- 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/your-user/**your-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/your-user/**your-folder**).
|
||||||
|
|
||||||
Example
|
Examples
|
||||||
-------
|
--------
|
||||||
|
|
||||||
|
Simple (one user and one folder):
|
||||||
```
|
```
|
||||||
docker run \
|
docker run \
|
||||||
-e SFTP_USERS="foo:pass,bar:pass" \
|
-e SFTP_USERS="foo:123" \
|
||||||
-v "ebooks:/home/foo/ebooks" \
|
-v "/sftp/share:/home/foo/share" \
|
||||||
-v "http:/home/bar/http" \
|
-p 2222:22 -d atmoz/sftp
|
||||||
|
```
|
||||||
|
|
||||||
|
Multiple users and folders:
|
||||||
|
```
|
||||||
|
docker run \
|
||||||
|
-e SFTP_USERS="foo:123,bar:abc" \
|
||||||
|
-v "/sftp/share:/home/foo/share" \
|
||||||
|
-v "/sftp/ebooks:/home/foo/ebooks" \
|
||||||
|
-v "/sftp/http:/home/bar/http" \
|
||||||
-p 2222:22 -d atmoz/sftp
|
-p 2222:22 -d atmoz/sftp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue