Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (2.3k points)

I've been trying to expose 3 ports with a docker container, but have failed. Is it possible to even do this? 

1 Answer

0 votes
by (6.9k points)
edited by

Try doing this, It will help you expose one part :

docker run -p <host_port>:<container_port>

If you want to have multiple ports exposed try this command :

docker run -p <host_port1>:<container_port1> -p <host_port2>:<container_port2>


 looks like you may need professional help in docker, try out this docker training course. 

Browse Categories

...