docker postgres pgadmin local connection

前端 未结 16 2307
清歌不尽
清歌不尽 2020-12-02 06:44

I have created an ubuntu image with nginx, php and postgres.

I want to connect the postgres database in my current image with pgadmin located on my loca

16条回答
  •  佛祖请我去吃肉
    2020-12-02 07:01

    In my case I could solve the problem inspecting my postgre image through command

    docker inspect CONTAINER_ID  | grep IPAddress.
    

    So, I used the docker ip address to config my pgadmin 4 connection and everything was fine. Thanks to @Afshin Ghazi

提交回复
热议问题