简体   繁体   中英

pgadmin4 inside a Docker container doesn't login

when i tried to login in pgadmin4 with this credentials

i get this error

Unable to connect to server:

connection to server at "db" (172.18.0.3), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

You should change the hostname in your server registration page to localhost . This is because container name is only accessible from other containers within the same docker user defined network.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM