A Dockerfile to build a sshd service with supervisord on Ubuntu 12.04
- Copy your public key to
ssh/id_rsa.pub
cp ~/.ssh/id_rsa.pub ssh/id_rsa.pub
- Build
docker build --no-cache --rm -t local/sshd .
- RUN container
ID=$(docker run -i -t -d -p 22 local/sshd)
- Login to your container
ssh localhost -p `docker port $ID 22 | cut -d":" -f2`
Root password is root