mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Fixes broken ssh server example
Docker-DCO-1.1-Signed-off-by: cpuguy83 <cpuguy83@gmail.com> (github: cpuguy83) Upstream-commit: 04620e01547d6526023b49494919f3eb3fcf900a Component: engine
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user