service-sftp/Dockerfile

32 lines
748 B
Text
Raw Normal View History

2017-11-25 16:53:36 +00:00
FROM atmoz/sftp:alpine
MAINTAINER Glenn Y. ROLLAND <glenux@glenux.net>
2017-11-25 16:56:51 +00:00
# Usage
# =====
2017-11-25 16:53:36 +00:00
2017-11-25 16:56:51 +00:00
# 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
# --------------------------
2017-11-25 16:53:36 +00:00
# /host/users.conf:
#
# foo:123:1001:100
# bar:abc:1002:100
# baz:xyz:1003:100
2017-11-25 16:56:51 +00:00
# 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