This repository contains Dockerfile of Ubuntu for Docker's automated build published to the public Docker Hub Registry.
-
Install Docker.
-
Download automated build from public Docker Hub Registry:
docker pull doomkin/ubuntu-ssh
-
Alternatively, you can build an image from Dockerfile:
docker build -t="doomkin/ubuntu-ssh" github.com/doomkin/ubuntu-ssh
sudo docker run --name ssh -it -d -P doomkin/ubuntu-ssh
eval `ssh-agent -s`
ssh-add ssh/id_rsa
ssh root@localhost -p `sudo docker port ssh 22 | cut -d":" -f2`