This is a starter kit for creating a flask app with Docker.
- Get the files:
git clone https://github.com/shubham1172/quickstart-docker-flask
cd quickstarter-docker-flask
- Build the image with Docker:
docker build -t helloworld .
- Run it:
docker run -p 80:8000 helloworld
- Delete the container
- Get the container id:
docker ps -a
- Delete it:
docker rm <container-id>
- Get the container id:
- Delete the image:
- Get the image id:
docker image ls
- Delete it:
docker rmi <image-id>
- Get the image id:
Sample Docker image is hosted here