Public Repository

Last pushed: a year ago
Short Description
Based on debian with openssh-server added
Full Description

Dockerfile:
FROM debian:latest
MAINTAINER Erik Bixby erik.bixby@gmail.com
RUN apt-get update && apt-get install -y openssh-server supervisor
RUN useradd -ms /bin/bash user
RUN echo "user:user" | chpasswd
RUN echo "root:root" | chpasswd
RUN mkdir -p /var/run/sshd
RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 22
CMD ["/usr/bin/supervisord"]

supervisord.conf:
[supervisord]
nodaemon=true

[program:sshd]
command=bash -c "/usr/sbin/sshd"
numprocs=1
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log

Default behavior for SSHd is to not allow root login, so user:user was created. Also, changed root's password to root. Might want to run "rm -v /etc/ssh/sshUNDERSCOREhostUNDERSCORE*" and "dpkg-reconfigure openssh-server" and then "service ssh restart" after pull, once, to reset keys. Also, change the passwords... ;-)

Docker Pull Command
Owner
ebixby

Comments (0)