docker-flask

Now optimized for Docker

Table of Contents

  1. Command Reference
    1. Build the image
    2. Build the container
    3. Remove all images with names that contain flask
    4. Remove all containers with names that contain flask
    5. See what's running

Command Reference

Build the image

docker build -t flask-image .

Build the container

docker run -p 5000:5000 --rm --name flask-container flask-image

Remove all images with names that contain flask

docker images -a | grep "flask" | awk '{print $3}' | xargs docker rmi

Remove all containers with names that contain flask

docker ps -a | grep "flask" | awk '{print $3}' | xargs docker rmi

See what's running

docker ps --format '{{.Names}}'