Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 28
    Unable to connect to server: could not translate host name "host.docker.internal" to address: Try again Commented Jun 20, 2019 at 14:23
  • 9
    I also used this approach to create both postgres and pgAdmin in docker. What worked for me as an input value was the answer from @SolidSnake - stackoverflow.com/a/58224344/4288961 > docker inspect CONTAINER_ID | grep IPAddress. and used this result IP address as a host Commented Apr 8, 2020 at 11:03
  • 10
    Awesome!. Very helpful. I only needed the 'host.docker.internal' value Commented Oct 21, 2020 at 18:30
  • 9
    'host.docker.internal' is exactly what I was missing, thanks!! Commented Sep 15, 2021 at 19:41
  • 6
    host.docker.internal - that's what I was looking for, thanks Commented Jun 23, 2022 at 11:40