How To Interactively Build a Docker Container

While working on a Docker based cross compiler image for J2V8 I interactively worked through steeve/cross-compiler and thewtex/cross-compilers.

Starting from an empty Debian based images:

$ docker run -it --name v8-build-win64 -t debian:jessie /bin/bash
root@ba4d9061c496:/#

After running the final command I used commit to save the work in a Docker container for more testing:

$ docker commit v8-build-win64 j2v8/v8-build-win64:interactive-01

With this container at hand it is easy to do more testing:

$ docker run --rm -it j2v8/v8-build-win64:interactive-01 /bin/bash