-
Hi, I'm trying to run a simple GoLang app https://snyk.io/blog/containerizing-go-applications-with-docker/ inside of a podman container on Windows but for some reason it's closing incoming connections while doing GET request with The container was started successfully with:
and I can see that on the host port 8080 is open and listening for incoming requests:
I don't think there's anything wrong with the app itself because it works fine when I run it on the host outside of the container. The full Dockerfile is below:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Did you try with a different image, maybe |
Beta Was this translation helpful? Give feedback.
-
I figured it out. It didn't like |
Beta Was this translation helpful? Give feedback.
Binding
:8080
is the normal thing to do when you want to expose your application. Otherwise you would need to figure the exact ip address of the interface which adds unnecessary work.The namesapce is completely transparent, the application has no longer direct access to the host system.
This just means all local (in this case container) addresses are bound.