Docker Command Line Cheatsheet
# Build image
# -t : tag
# . : current dir
docker build -t username/image_name:tag_name .
# start image in bash
# -i : interactive
# -t : terminal
docker run -i -t ubuntu /bin/bash
# Delete "<none>" tagged images
docker images | grep "<none>" | awk '{print $3}' | xargs docker rmi -f
# list all containers that have been executed
# -a : all
# get the container_id from here in order to commit the correct container
docker ps -a
# commit image locally
docker commit container_id image_name