Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Noob Question] - Which host do you use inside pgAdmin to connect to the DP? (in your 'Practical example') #29

Closed
JasoonS opened this issue Feb 26, 2018 · 3 comments

Comments

@JasoonS
Copy link

JasoonS commented Feb 26, 2018

I wasn't able to connect to the database when specifying the host as localhost or 0.0.0.0. What value to you put in that field?

I was able to get everything to work if I used --net="host", however. But no luck with --net pg as in your instructions from 'Practical example'

I'm not sure if this is the same issue as is spoken about here: #12 ?

But thanks for sharing this, super useful 👍

@thaJeztah
Copy link
Owner

When using the --net=pg in the example, you're connecting to the database over the container-container network. In those networks, you can connect to other containers using their name as hostname (so postgres in the example, which is the container-name)

@JasoonS JasoonS closed this as completed Feb 27, 2018
@JasoonS
Copy link
Author

JasoonS commented Feb 27, 2018

Thanks, working 100%

@thaJeztah
Copy link
Owner

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants