Create a Docker Image for Local Development

$ sudo debootstrap xenial u16 > /dev/null
$ sudo tar -C u16 -c . | docker import - ubuntu:16.04


$ docker run ubuntu16.04 cat /etc/lsb-release

To Create an Instant Working Ubuntu Container


docker run --name u16 \
-e HOST_ip= \
-v /home/charles/Jobs/Rocketseed/escrow/7.0.2:/home/charles \
-ti \
ubuntu:16.04 /bin/bash

Commit a Container


$ docker commit --change='CMD ["apachectl", "-DFOREGROUND"]' -c "EXPOSE 80" c3f279d17e0a  svendowideit/testimage:version4

Get the IP Address of a Container


docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id