From 45f5db362928849d24576f184d7b063276473aff Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 25 Nov 2017 17:56:51 +0100 Subject: [PATCH] Add comments and usage example --- Dockerfile | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e8ea92b..926535a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,31 @@ FROM atmoz/sftp:alpine MAINTAINER Glenn Y. ROLLAND -# docker run \ -# -v /host/users.conf:/etc/sftp/users.conf:ro \ -# -v mySftpVolume:/home \ -# -p 2222:22 -d atmoz/sftp +# Usage +# ===== +# 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: # # foo:123:1001:100 # bar:abc:1002: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 +