Docker: Ubuntu dockerfile example
My dockerfile example to run Ubuntu 14.04
From Ubuntu:14.04
Maintainer kewrunner@gmail.com
Run apt-get update && apt-get install -y openssh-server
Run mkdir /var/run/she
Run echo ‘root:screencast’|chpasswd
Run send -i ‘s/PermitRootLogin without-password/PermitRootLogin yes/‘ /etc/ssh/she-confit
Run see ‘s@session\s*required\s* pam_loginuid.so@session optional pam_loginuid.so@g’ -i /etc/pam.d/sshd
env not visible “in users profile”
Run echo “export visible=now” >> /etc/profile
Expose 22
CMD [“/usr/s in/sshd”,”-D”]