Skip to content

Homepage unable to connect other services running in docker in same machine #4164

Closed Locked Answered by shamoon
CodeWithCJ asked this question in Support
Discussion options

You must be logged in to vote

You should read the docker networking documentation. Using the host IP (ie using host network mode) between containers defeats (some of) the purpose of containerizing and docker’s internal dns.

Instead, the most common thing is to use a container name as the host eg http://portainer:3000

There are other approaches too

Again, not really anything to do with homepage

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@CodeWithCJ
Comment options

@shamoon
Comment options

Answer selected by shamoon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants