Main Menu

Search

DOCKER: How To Start Docker Container On Specific Port? (DevOps)

Docker Instance can be started on Specific port using below command

docker run -d -ti -p <port1>:<port2> <docker-image>

In above command port1 is for running docker container on that specific port on the host where docker is being started. port2 is the listen port of the application running inside the docker container. 


Products to which Article Applies

Docker Containers 

Search Keywords: docker dockers how to start specific port ports started starting instance instances container containers devops host hosts listen

Article Author: Tarun Boyella

 

No comments:

Post a Comment