Create motd (Message Of The Day) file.
Generate RSA ssh key
ssh-keygen -f ssh-key -t rsa
Build container
docker build -t ubuntu-sshd .
Run containter on port 50
docker run -d -p 50:22 ubuntu-sshd
SSH to container
ssh -i ssh-key -o StrictHostKeyChecking=no -p 50 -v root@$(boot2docker ip)
Content type
Image
Digest
sha256:f0b73ff97…
Size
96.1 MB
Last updated
almost 11 years ago
docker pull mrh666/ubuntu-sshd