From e6aa103675a4fce88838e7992437212e472a53a3 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Thu, 18 Aug 2016 12:45:59 +0200 Subject: [PATCH 1/2] Typo and text update --- README.md | 6 +++--- tests/run | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b4b93de..1526840 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This is an automated build linked with the [debian](https://hub.docker.com/_/deb ownership. Perfect when you just want a fast way to upload something without mounting any directories, or you want to make sure a directory is owned by a user (chown -R). -- Mount volumes in user's home direcotry. +- Mount volumes in user's home directory. - The users are chrooted to their home directory, so you must mount the volumes in separate directories inside the user's home directory (/home/user/**mounted-directory**). @@ -32,11 +32,11 @@ This is an automated build linked with the [debian](https://hub.docker.com/_/deb docker run -p 22:22 -d atmoz/sftp foo:pass:::upload ``` -No mounted directories or custom UID/GID. User "foo" with password "pass" can login with sftp and upload files to a folder called "upload". Later you can inspect the files and use `--volumes-from` to mount them somewhere else (or see next example). +User "foo" with password "pass" can login with sftp and upload files to a folder called "upload". No mounted directories or custom UID/GID. Later you can inspect the files and use `--volumes-from` to mount them somewhere else (or see next example). ## Sharing a directory from your computer -Let's mount a direcotry and set UID: +Let's mount a directory and set UID: ``` docker run \ diff --git a/tests/run b/tests/run index 6baeed1..888299a 100755 --- a/tests/run +++ b/tests/run @@ -36,7 +36,7 @@ function beforeTest() { rm -rf "$tmpDir" # clean state mkdir "$tmpDir" - echo "test::$(id -u):$(id -g):share,dir1,dir2" >> "$tmpDir/users" + echo "test::$(id -u):$(id -g):dir1,dir2" >> "$tmpDir/users" docker run \ -v "$tmpDir/users:/etc/sftp-users.conf:ro" \ -v "$scriptDir/id_rsa.pub":/home/test/.ssh/keys/id_rsa.pub:ro \ From 9307ba0a56042b536dd04cf5e2ac126ba0f1e530 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Thu, 18 Aug 2016 12:49:08 +0200 Subject: [PATCH 2/2] Add microbadger.com badges --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1526840..268e9cc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Supported tags and respective `Dockerfile` links -- [`debian-jessie`, `debian`, `latest` (*Dockerfile*)](https://github.com/atmoz/sftp/blob/master/Dockerfile) -- [`alpine-3.4`, `alpine` (*Dockerfile*)](https://github.com/atmoz/sftp/blob/alpine/Dockerfile) +- [`debian-jessie`, `debian`, `latest` (*Dockerfile*)](https://github.com/atmoz/sftp/blob/master/Dockerfile) [![](https://images.microbadger.com/badges/image/atmoz/sftp.svg)](http://microbadger.com/images/atmoz/sftp "Get your own image badge on microbadger.com") +- [`alpine-3.4`, `alpine` (*Dockerfile*)](https://github.com/atmoz/sftp/blob/alpine/Dockerfile) [![](https://images.microbadger.com/badges/image/atmoz/sftp:alpine.svg)](http://microbadger.com/images/atmoz/sftp "Get your own image badge on microbadger.com") # Securely share your files