diff --git a/docs/sources/examples/running_ssh_service.Dockerfile b/docs/sources/examples/running_ssh_service.Dockerfile index dd2acb7a4b..978e610422 100644 --- a/docs/sources/examples/running_ssh_service.Dockerfile +++ b/docs/sources/examples/running_ssh_service.Dockerfile @@ -2,16 +2,15 @@ # # VERSION 0.0.1 -FROM ubuntu +FROM debian MAINTAINER Thatcher R. Peskens "thatcher@dotcloud.com" # make sure the package repository is up to date -RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update RUN apt-get install -y openssh-server -RUN mkdir /var/run/sshd +RUN mkdir /var/run/sshd RUN echo 'root:screencast' |chpasswd EXPOSE 22 -CMD /usr/sbin/sshd -D +CMD ["/usr/sbin/sshd", "-D"] diff --git a/docs/sources/examples/running_ssh_service.md b/docs/sources/examples/running_ssh_service.md index 5be2c7053e..27439f998f 100644 --- a/docs/sources/examples/running_ssh_service.md +++ b/docs/sources/examples/running_ssh_service.md @@ -12,11 +12,10 @@ quick access to a test container. # # VERSION 0.0.1 - FROM ubuntu + FROM debian MAINTAINER Thatcher R. Peskens "thatcher@dotcloud.com" # make sure the package repository is up to date - RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update RUN apt-get install -y openssh-server @@ -24,7 +23,7 @@ quick access to a test container. RUN echo 'root:screencast' |chpasswd EXPOSE 22 - CMD /usr/sbin/sshd -D + CMD ["/usr/sbin/sshd", "-D"] Build the image using: