1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #6219 from cpuguy83/fix_ssh_example_docs_root_login

Fixes broken ssh server example
This commit is contained in:
Sven Dowideit 2014-06-05 15:02:43 -07:00
commit a2c553bd6b
2 changed files with 5 additions and 7 deletions

View file

@ -2,11 +2,10 @@
#
# 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
@ -14,4 +13,4 @@ RUN mkdir /var/run/sshd
RUN echo 'root:screencast' |chpasswd
EXPOSE 22
CMD /usr/sbin/sshd -D
CMD ["/usr/sbin/sshd", "-D"]

View file

@ -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: