Public | Automated Build

Last pushed: a year ago
Short Description
DockerCentos7Sftp
Full Description

SFTP Docker Server

Synopsis

Just a Dockerfile to have a SFTP server ready to use

References

Build

Docker build commande:


    docker build -t "$DOCKER_IMG_NAME" --build-arg SFTP_USER=$SFTP_USER --build-arg SFTP_PASS=$SFTP_PASS .

Run

Docker commnade to create a SFTP server:


    docker run -itd -p $HOST_PORT:22 --name="$DOCKER_NAME" "$DOCKER_IMG_NAME"

The default home folder of the user in the container is "/home/$SFTP_USER"

Variables:

  • $DOCKER_IMG_NAME: is the name of the Docker image

  • $DOCKER_NAME: is the Docker name

  • $SFTP_USER: user which will be used to etablish the SFTP connection

  • $SFTP_PASS: password which will be used to etablish the SFTP connection

  • $HOST_PORT: connexion port on the docker host

Licence

This product is under MIT License.

Docker Pull Command
Owner
durtdiver
Source Repository

Comments (0)