Skip to content

Create Docker Container Flask Python | How to Use Docker to Containerise Flask Application in Python

Notifications You must be signed in to change notification settings

aviggithub/Create-Docker-Container-Flask-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Create-Docker-Container-Flask-Python

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

prerequisite

Docker

DOCKER COMMANDS

1. Create New Docker Image

docker build -t appname:tagname .

2. Show Created Docker Images

docker images

3. Run Docker Image

docker run --name conatinername -d -p 7778:7777 appname:tagname

4. Show ALL Container

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

5. File Run on Host Port

http://0.0.0.0:7779

api_run_docker

About

Create Docker Container Flask Python | How to Use Docker to Containerise Flask Application in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published