How to run and host Flask in a Docker container

Random code
Random code
30.7 هزار بار بازدید - 3 سال پیش - I showcase how we can
I showcase how we can run a simple flask app that prints "Hello World!" to the screen from a docker container.


Commands:
Build a docker image:
docker build -t [tag] [dockerfile position]

Create and run Docker container
docker run -d -p [host port]:[container port] [docker image]

How to see all images
docker images

How to see all containers
docker ps


My channel publishes videos regarding programming, software engineering, especially python, Java and JavaFX. If that is what you are looking for then do not hesitate to join me on this journey!

Subscribe to my YouTube channel:
@randomcode_0
3 سال پیش در تاریخ 1400/09/20 منتشر شده است.
30,726 بـار بازدید شده
... بیشتر