summaryrefslogtreecommitdiff
path: root/docs/sources/examples/running_ssh_service.Dockerfile
blob: 978e6104222a16ab4c721272567dc19e03fb2000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# sshd
#
# VERSION               0.0.1

FROM     debian
MAINTAINER Thatcher R. Peskens "thatcher@dotcloud.com"

# make sure the package repository is up to date
RUN apt-get update

RUN apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:screencast' |chpasswd

EXPOSE 22
CMD    ["/usr/sbin/sshd", "-D"]