Expose host port to container #24179
-
Hi there, I've been pulling my hair out to figure this one: How would I expose a port on the host (basically a non containerized postgres) to a rootless container? Tried with |
Beta Was this translation helpful? Give feedback.
Answered by
martino87r
Oct 5, 2024
Replies: 1 comment
-
Ok so sorted it out by using:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
martino87r
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok so sorted it out by using:
pasta:--map-host-loopback=10.10.10.10
postgres is reachable in the container on the mapped IP