Create a Docker Image for Local Development

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

a29c15f1bf7a

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

To Create an Instant Working Ubuntu Container

(from: https://medium.com/@hudsonmendes/docker-have-a-ubuntu-development-machine-within-seconds-from-windows-or-mac-fd2f30a338e4)

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

Commit a Container

(from: https://docs.docker.com/engine/reference/commandline/commit/#usage)

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