How to bind only to localhost when using host network ? #25644
-
How can i tell the container to bind only to localhost when using host network ? I only know how to bind only to localhost when forwarding ports :
And how to bind to host network but it binds to all interfaces :
And i know how to modify the container program itself, to listen only to localhost (which works as intended) :
But how can i limit to localhost in host mode, when a process in a container tries to bind to any address or interface ? Nicolas |
Beta Was this translation helpful? Give feedback.
Answered by
sbrivio-rh
Mar 21, 2025
Replies: 1 comment 1 reply
-
There's no way to do so externally, but you can configure nginx to do so, say:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nipil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no way to do so externally, but you can configure nginx to do so, say: