git clone https://github.com/muhammadaliazhar/PythonApp-docker.gitdocker build -t flask-app .docker run -d -p 80:80 flask-app
Open port 80 on your instance security group ( firewall rule )
Hit public ip of your instance on a browser
Check container logs
docker logs <container-id>
To see real time logs of a docker container we use attach command, this will attach our host terminal with the container terminal
docker attach <container-id