Sign inSign up

adwk67/docker-ssh

By adwk67

•Updated over 7 years ago

docker container with ssh-enabled + JDK

Image
0

367

adwk67/docker-ssh repository overview

⁠Debian with SSH as container development environment

The image provided hereunder deploys a container to be used as container development environment.

Base of this image builds a tagged version of debian:stretch⁠ with enabled SSH⁠.

⁠Container prerequisites
⁠Port mapping

For remote login to the container across SSH the container's SSH port 22 needs to be mapped to any free netPI host port.

⁠Privileged mode

Only the privileged mode option lifts the enforced container limitations to allow usage of Docker in a container.

⁠Getting started

STEP 1. Open netPI's landing page under https://<netpi's ip address>.

STEP 2. Click the Docker tile to open the Portainer.io⁠ Docker management user interface.

STEP 3. Enter the following parameters under Containers > Add Container

  • Image: hilschernetpi/netpi-container-build-environment

  • Port mapping: Host "22" (any unused one) -> Container "22"

  • Restart policy" : always

  • Runtime > Privileged mode : On

STEP 4. Press the button Actions > Start container

Pulling the image from Docker Hub may take up to 5 minutes.

⁠Accessing

The container starts the SSH service.

Login to it with an SSH client such as putty⁠ using netPI's IP address along with the mapped SSH port. Use the credentials root as user and root as password when asked and you are logged in as root.

Tag summary

Content type

Image

Digest

Size

207.1 MB

Last updated

over 7 years ago

docker pull adwk67/docker-ssh