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”]

Leave a Reply

RELATED POST

Virtual Machine Manager: Error starting domain

Starting up the KVM error occurred Error starting domain: Requested operation is not valid: network 'default' is not active Locate…

Lab Hack: Raspberry Pi running VMWare ESXi

As strange as the title sounds, yes I am running VMWare ESXi on a Raspberry Pi 4 Model B (4GB)…

docker: run ubuntu interactively

Lets get the output of top from ubuntu container $ sudo docker container run -it ubuntu top $ sudo docker…

docker: clean up after yourself

After having fun spinning up containers $ sudo docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7421735b919f…