Add comments and usage example
This commit is contained in:
parent
a87177f2ca
commit
45f5db3629
1 changed files with 22 additions and 4 deletions
26
Dockerfile
26
Dockerfile
|
@ -1,13 +1,31 @@
|
||||||
FROM atmoz/sftp:alpine
|
FROM atmoz/sftp:alpine
|
||||||
MAINTAINER Glenn Y. ROLLAND <glenux@glenux.net>
|
MAINTAINER Glenn Y. ROLLAND <glenux@glenux.net>
|
||||||
|
|
||||||
# docker run \
|
# Usage
|
||||||
# -v /host/users.conf:/etc/sftp/users.conf:ro \
|
# =====
|
||||||
# -v mySftpVolume:/home \
|
|
||||||
# -p 2222:22 -d atmoz/sftp
|
|
||||||
|
|
||||||
|
# Generate your own SSH keys
|
||||||
|
# --------------------------
|
||||||
|
|
||||||
|
# ssh-keygen -t ed25519 -f ssh_host_ed25519_key < /dev/null
|
||||||
|
# ssh-keygen -t rsa -b 4096 -f ssh_host_rsa_key < /dev/null
|
||||||
|
|
||||||
|
# Prepare user configuration
|
||||||
|
# --------------------------
|
||||||
# /host/users.conf:
|
# /host/users.conf:
|
||||||
#
|
#
|
||||||
# foo:123:1001:100
|
# foo:123:1001:100
|
||||||
# bar:abc:1002:100
|
# bar:abc:1002:100
|
||||||
# baz:xyz:1003:100
|
# baz:xyz:1003:100
|
||||||
|
|
||||||
|
# Run the container
|
||||||
|
# -----------------
|
||||||
|
#
|
||||||
|
# docker run \
|
||||||
|
# -v /host/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key \
|
||||||
|
# -v /host/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key \
|
||||||
|
# -v /host/users.conf:/etc/sftp/users.conf:ro \
|
||||||
|
# -v mySftpVolume:/home \
|
||||||
|
# -v /host/share:/home/foo/share \
|
||||||
|
# -p 2222:22 -d atmoz/sftp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue