Skip to content

Docker image/container materials for a SSH Server

Notifications You must be signed in to change notification settings

alain2sf/docker-sshd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Necessary Materials to Build a Docker Image of a SSH Server

Create the Docker Initial Image

  1. Change/Customize your image name/tag into _build.sh

Refers Dockerfile: Dockerfile.sshd

  1. Run the shell file _build.sh to build the initial docker image

Create/Run the Container

  1. Change/Customize your image name/tag, hosts, ports and container name into _run.sh

Refers init command: launcher_sshd.sh

  1. Run _run.sh to create and start the container from image created at step 1

Then use docker stop|start container_name commands to stop/start the container
Check your container with docker ps [-a]
Remove your container with docker rm container_name

BASH Shell Session to the Container

  1. Change/Customize your container name into _exec.sh

  2. Run _exec.sh to create a bash shell session to the container

About

Docker image/container materials for a SSH Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages