Skip to content

agarwalsoham993/Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Docker Commands

To build docker image:

docker build -t flask-server .

. specifies current directory

To create a container using that image:

docker run -d -p 8080:5000 --name test-container-1 flask-server

-d : runs the container in background I m using 8080 port just to show that , we can map any port on my laptop from the 5000 port of the container

To stop the container


docker stop test-container-1

To remove the container


docker rm my-python-app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages