Docker commit
$ docker run -it ubuntu:16.04 bash
# apt-get update
# apt-get install -y git
# git version
$ docker ps
$ docker diff <CONTAINER_ID>
$ docker commit <CONTAINER_ID> ubunut:git
$ docker run -it ubuntu:git bash
# git
Dockerfile
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git
$ docker build -t ubuntu:git02 .
$ docker run -it ubuntu:git02 bash
# git version