running_ssh_service.Dockerfile 411 B

1234567891011121314151617
  1. # sshd
  2. #
  3. # VERSION 0.0.1
  4. FROM ubuntu
  5. MAINTAINER Thatcher R. Peskens "thatcher@dotcloud.com"
  6. # make sure the package repository is up to date
  7. RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
  8. RUN apt-get update
  9. RUN apt-get install -y openssh-server
  10. RUN mkdir /var/run/sshd
  11. RUN echo 'root:screencast' |chpasswd
  12. EXPOSE 22
  13. CMD /usr/sbin/sshd -D