Create Docker Container Flask Python | How to Use Docker to Containerise Flask Application in Python
This is basic tutorial how to create Docker Container from python app or flask api
Docker
docker build -t appname:tagname .
docker images
docker run --name conatinername -d -p 7778:7777 appname:tagname
docker ps -a
Example :- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 55ff23d25c flaskapp:latest "/bin/sh -c 'python3…" 5 hours ago Up 5 hours 0.0.0.0:7779->7779/tcp flaskapp