From: Adrian Klaver <adrian.klaver@aklaver.com>
To: robert <robert@redcor.ch>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: pgadmin4: not possible to create server
Date: Tue, 6 Feb 2018 14:30:56 -0800
Message-ID: <2fab5f7f-a941-cfdd-64e5-5a4f93130c9f@aklaver.com> (raw)
In-Reply-To: <5c9f1bbd-5f90-2180-5d60-5af1c17f0812@redcor.ch>
References: <75bd1546-6822-e366-d7da-1488074b474f@redcor.ch>
<35c2c035-9911-2a5f-e54a-0b8e49dd256e@aklaver.com>
<8415c4eb-d73f-1bb8-3d04-54ba32bb19cd@redcor.ch>
<1259de1e-91b9-7d21-5e01-eed51b464423@aklaver.com>
<5c9f1bbd-5f90-2180-5d60-5af1c17f0812@redcor.ch>
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-t...>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, robert@redcor.ch
Subject: Re: pgadmin4: not possible to create server
In-Reply-To: <2fab5f7f-a941-cfdd-64e5-5a4f93130c9f@aklaver.com>
References: <75bd1546-6822-e366-d7da-1488074b474f@redcor.ch> <35c2c035-9911-2a5f-e54a-0b8e49dd256e@aklaver.com> <8415c4eb-d73f-1bb8-3d04-54ba32bb19cd@redcor.ch> <1259de1e-91b9-7d21-5e01-eed51b464423@aklaver.com> <5c9f1bbd-5f90-2180-5d60-5af1c17f0812@redcor.ch> <2fab5f7f-a941-cfdd-64e5-5a4f93130c9f@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox