Re: pgadmin4: not possible to create server

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: robert <robert(at)redcor(dot)ch>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pgadmin4: not possible to create server
Date: 2018-02-06 22:30:56
Message-ID: 2fab5f7f-a941-cfdd-64e5-5a4f93130c9f@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 02/06/2018 02:19 PM, robert wrote:
>
>
> On 06.02.2018 23:12, Adrian Klaver wrote:
>> On 02/06/2018 02:08 PM, robert wrote:
>>>
>>>
>>> On 06.02.2018 18:28, Adrian Klaver wrote:
>>>> On 02/06/2018 09:24 AM, robert rottermann wrote:
>>>>> Hi there,
>>>>>
>>>>> I have installed pgadmin4 locally using its docker image.
>>>>>
>>>>> this i did running the following command:
>>>>>
>>>>> docker run -p 80:80 -e "PGADMIN_DEFAULT_EMAIL=admin" -e
>>>>> "PGADMIN_DEFAULT_PASSWORD=admin" -d dpage/pgadmin4
>>>>>
>>>>> I then could access it and log into it.
>>>>>
>>>>> However all my attempts end in:
>>>>>
>>>>> Unable to connect to server:
>>>>>
>>>>> could not connect to server: Connection refused
>>>>> Is the server running on host "localhost" (::1) and accepting
>>>>> TCP/IP connections on port 5432?
>>>>> could not connect to server: Connection refused
>>>>> Is the server running on host "localhost" (127.0.0.1) and accepting
>>>>> TCP/IP connections on port 5432?
>>>>
>>>> So where is the Postgres server located?
>>> on my local desktop
>>
>> So you pgAdmin4 running in a container on your local machine and
>> Postgres running in the native OS(the OS is?) on your local machine.
>> Is the Docker container set up to 'see' the local machine?
>
> what do you mean by see?

For fuller explanation see:

https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-02-06 22:33:30 Re: pgadmin4: not possible to create server
Previous Message Azimuddin Mohammed 2018-02-06 22:27:01 postgres instalation