100. FROM ubuntu
MAINTAINER shiro@contoso.com
# install sshd
RUN apt-get install -y ssh
RUN service ssh start
RUN service ssh stop
# create gme user
RUN useradd gme
RUN echo "gme:hogehoge" | chpasswd
RUN mkdir /home/gme
RUN chown gme:gme /home/gme
ADD hello.txt /home/gme/hello.txt
# open the port
EXPOSE 22
# start command
CMD [ "/usr/sbin/sshd","-D" ]
101. FROM windowsservercore
MAINTAINER shiro@contoso.com
# Uses dism.exe to install the IIS role.
RUN dism.exe /online /enable-feature /all /featurename:iis-
webserver /NoRestart
# Creates an html files
RUN echo "Hello World" > c:¥inetpub¥wwwroot¥index.html
# Sets a command to run
CMD [ "cmd" ]