Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ejBad-0002CP-7h for pgsql-general@arkaria.postgresql.org; Tue, 06 Feb 2018 22:19:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejBac-0006ku-7K for pgsql-general@arkaria.postgresql.org; Tue, 06 Feb 2018 22:19:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ejBab-0006kj-SJ for pgsql-general@lists.postgresql.org; Tue, 06 Feb 2018 22:19:46 +0000 Received: from susanne.redcor.ch ([178.63.103.72]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ejBaZ-0007K2-8X for pgsql-general@postgresql.org; Tue, 06 Feb 2018 22:19:44 +0000 Received: from [192.168.0.220] (84-72-41-168.dclient.hispeed.ch [84.72.41.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robert@redcor.ch) by susanne.redcor.ch (Postfix) with ESMTPSA id 45F0DA0441 for ; Tue, 6 Feb 2018 23:19:41 +0100 (CET) From: robert Subject: Re: pgadmin4: not possible to create server To: "pgsql-general@postgresql.org" 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> Message-ID: <5c9f1bbd-5f90-2180-5d60-5af1c17f0812@redcor.ch> Date: Tue, 6 Feb 2018 23:19:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1259de1e-91b9-7d21-5e01-eed51b464423@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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?