This is a lightweight SFTP server in a docker container.
1.1K
This is a lightweight SFTP server in a docker container.
This image provides:
A full example is provided in the docker-compose file
git clone https://github.com/pvrmza/docker-sshd-server.git
cd docker-sshd-server
cp users.yaml.example users.yaml
docker-compose up
version: '2'
services:
sshd:
image: pvrmza/docker-sftp-server:latest
env_file:
- .env
cap_add:
# Required if you want to chroot
- SYS_ADMIN
security_opt:
# Required if you want to chroot
- apparmor:unconfined
ports:
- 2222:22
volumes:
- ./users.yaml:/config/users.yaml
- ./vol/keys:/etc/ssh/keys/
users:
- username: username1
homedirectory: /home/username1
password: ChangeIT2024!
ssh_public_keys:
- "ssh-rsa your ssh public key 1"
- "ssh-rsa your ssh public key 2"
- username: username2
uid: 1002
homedirectory: /home/username2
umask: 0222
chroot: /data1
sftpblackewq: remove,rmdir,mkdir,symlink,rename
ssh_public_keys:
- "ssh-rsa your ssh public key 1"
Besides the usual disclaimer in the license, we want to specifically emphasize that the authors, and any organizations the authors are associated with, can not be held responsible for data-loss caused by possible malfunctions of Docker Magic Sync.
GPLv2 or any later GPL version.
Content type
Image
Digest
sha256:bd6f75d50…
Size
10.7 MB
Last updated
over 2 years ago
docker pull pvrmza/docker-sftp-server