Main Menu

Search

Showing posts with label docker commands. Show all posts
Showing posts with label docker commands. Show all posts

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

 

DOCKER: Useful Docker Commands CheatSheet (DevOps)

Useful Docker Commands Cheatsheet


Stop Docker Container Instance - docker stop <container ID>


Remove All Docker Images - docker rmi $(docker images -q)


List Docker Processes - docker ps


List Docker Images - docker images


Pulling Docker Images - docker pull <image-name>


Connect To Run Command Within Running Docker Container - docker exec <container-id> <command>



Products to which Article Applies

Dockers 

Search Keywords: docker dockers command commands devops cheat sheet cheatsheet how to image images stop start list process processes container containers delete remove removing deleting start starting cloud

Article Author: Tarun Boyella