Public | Automated Build

Last pushed: a year ago
Short Description
DockerCentos7SSH
Full Description

SSH Docker Server

Synopsis

Just a Dockerfile to have a SSH server ready to use

References

Build

Docker build commande:

    docker build -t "$DOCKER_IMG_NAME" --build-arg SSH_USER=$SSH_USER --build-arg SSH_PASS=$SSH_PASS .

Run

Docker commnade to create a SSH server:

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

Variables:

  • $DOCKER_IMG_NAME: is the name of the Docker image

  • $DOCKER_NAME: is the Docker name

  • $SSH_USER: user which will be used to etablish the SSH connection

  • $SSH_PASS: password which will be used to etablish the SSH 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)