Quantcast
Channel: Active questions tagged dockerfile - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 136

How to get exposed ports from inside of container?

$
0
0

I want to know which port(s) are exposed when user run the image.

docker run -p 1000:1234 myimagename

I want to get 1234 value in container since I will use it for some configurations(IIS bindings etc.) inside of container.

Is there any env variable for this purpose?


Viewing all articles
Browse latest Browse all 136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>