This image has centos7 running OpenSSL Sftp server configured on port 22, you must supply a username, share directory and password in order to run this image. Note: Please use docker compose in windows machine.
Please use the script build.sh to build the docker image
Note: build.sh file create a docker image named "dhaks\centos7-sftp:1.0.0"
mkdir -m 766 share
docker run \
-v share:/home/foo/share \
-p 2222:22 -d dhaks/centos7-sftp:1.0.0 \
foo:123:1001
Note: username is "foo" with password "123" and userid "1001"
mkdir sharemkdir -m 766 share
version: '2'
services:
sftp:
image: dhaks/centos7-sftp:1.0.0
hostname: sftp
ports:
- "2222:22"
volumes:
- ./share:/home/foo/share
entrypoint: ["/root/run","foo:123:1001" ]
docker-compose up -d
sftp -P 2222 foo@localhost
Content type
Image
Digest
Size
78.7 MB
Last updated
about 7 years ago
docker pull dhaks/centos7-sftp