0

I currently have a nginx container which points to other dockers, that run a java app, through ip and port, working as expected. For simplicity porpouse, I'm running these java apps outside a docker container, thus having them exposed on localhost:xxxx

When trying to communicate to localhost:xxxx from nginx container, it obviously pointer to the container itself and not my java apps.

Is there a workaround to this problem?

1
  • which OS? and docket version? Commented May 18, 2018 at 10:48

1 Answer 1

1

Localhost is scoped to the container itself. Therefore to be able to connect to it, you would have to be inside the container.

To fix this, you need to get your application to talking/listen to 0.0.0.0 instead.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.