This Gist serves the purpose of better understanding different aspects of docker.
Based on ideas and code from https://dzone.com/articles/docker-container-resource-management-cpu-ram-and-i
# clean up preparation
docker stop $(docker ps -a -q)
docker rm -f $(docker ps -a -q)