Docker: Ubuntu dockerfile example

My dockerfile example to run Ubuntu 14.04

From Ubuntu:14.04
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* optional’ -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”]

Leave a Reply


Lab hack: docker notes

Allowing Rights to Host Mounted Volumes #docker ps -a #docker run -v -v option creates the volume #docker -v <container…

Docker: mongodb

Create dockerfile, complete build process then run image with mapped port #docker run -p 27017:27017 —name mongo1 -d my/repo #docker…

Docker Swarm

Straight to the point when creating a docker swarm, assume the internal network space is . This will create…