Загрузка страницы

How to run and host Flask in a Docker container

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:
https://www.youtube.com/channel/UCyjEXAHK8xfRmlnkat2ympQ?sub_confirmation=1

Видео How to run and host Flask in a Docker container канала Random code
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
11 декабря 2021 г. 18:00:10
00:07:30
Яндекс.Метрика