Skip to content

Instantly share code, notes, and snippets.

@gnue
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnue/8928369 to your computer and use it in GitHub Desktop.
Save gnue/8928369 to your computer and use it in GitHub Desktop.
sshd を起動する Dockerfile
# sshd
#
# VERSION 0.0.1
FROM ubuntu
RUN apt-get update
RUN apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo "root:foobar" | chpasswd
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment