Now optimized for Docker
docker build -t flask-image .
docker run -p 5000:5000 --rm --name flask-container flask-image
docker images -a | grep "flask" | awk '{print $3}' | xargs docker rmi
docker ps -a | grep "flask" | awk '{print $3}' | xargs docker rmi
docker ps --format '{{.Names}}'