From: | Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com> |
---|---|
To: | Omar Francis <omar(dot)francis(at)branchbot(dot)com> |
Cc: | pgAdmin Support <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: Docker TLS for PGAdmin |
Date: | 2020-06-26 05:53:22 |
Message-ID: | CAM9w-_m6B3XMG0Ja+YhdU7DzmRahwwqVRq8o2QbsMceA-d-mmA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hi Omar,
I meant the "docker logs" command. Refer-
https://docs.docker.com/engine/reference/commandline/logs/. Run "docker ps
-a", grab the container id and user "docker logs <container id>".
On Thu, Jun 25, 2020 at 7:03 PM Omar Francis <omar(dot)francis(at)branchbot(dot)com>
wrote:
> Hi Aditya
>
> Below is the output from when I run it in ubuntu. Moments after running
> docker ps the first time the container exits
>
> ubuntu(at)my-ip:~$ docker run -p 443:443 -v
> /private/var/lib/pgadmin:/var/lib/pgadmin -v
> /etc/ssl/certs/server.cert:/certs/server.cert -v
> /etc/ssl/private/server.key:/certs/server.key -v
> /private/var/lib/pgadmin/servers.json:/pgadmin4/servers.json -e
> 'PGADMIN_DEFAULT_EMAIL=somebody(at)anyemail(dot)com' -e
> 'PGADMIN_DEFAULT_PASSWORD=userpwd' -e 'PGADMIN_ENABLE_TLS=True' -d
> dpage/pgadmin4
> f17b1525d62908a8440a3f8caa73c8442de077e652d311e44df6630f5cc3babd
> ubuntu(at)my-ip:~$ docker ps
> CONTAINER ID IMAGE COMMAND CREATED
> STATUS PORTS NAMES
> f17b1525d629 dpage/pgadmin4 "/entrypoint.sh" 4 seconds ago
> Up 3 seconds 80/tcp, 0.0.0.0:443->443/tcp gracious_shockley
> ubuntu(at)my-ip:~$ docker ps
> CONTAINER ID IMAGE COMMAND CREATED
> STATUS PORTS NAMES
> ubuntu(at)my-ip:~$
>
>
>
>
> On 25 Jun 2020, at 11:25, Aditya Toshniwal <
> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>
> Hi Omar,
>
> Could you please share docker logs ? Might get something helpful there.
>
> On Thu, Jun 25, 2020 at 3:29 PM Omar Francis <omar(dot)francis(at)branchbot(dot)com>
> wrote:
>
>>
>> Hi am I emailing the right mailbox? Dave Page advised this was the
>> correct channel for support on his image.
>>
>> Regards
>>
>> Omar
>>
>> > On 22 Jun 2020, at 09:38, Omar Francis <omar(dot)francis(at)branchbot(dot)com>
>> wrote:
>> >
>> > Hi all
>> >
>> > I am looking to run PGAdmin4 over TLS through a Docker container in a
>> Ubuntu terminal. I have been able to run over a simple http connection but
>> when I pass in the arguments below to set up TLS the container ID runs for
>> several seconds before exiting.
>> >
>> > docker run -p 443:443 \
>> > -v /private/var/lib/pgadmin:/var/lib/pgadmin \
>> > -v /etc/ssl/certs/server.cert:/certs/server.cert \
>> > -v /etc/ssl/private/server.key:/certs/server.key \
>> > -v /private/var/lib/pgadmin/servers.json:/pgadmin4/servers.json \
>> > -e 'PGADMIN_DEFAULT_EMAIL=user(at)email(dot)com' \
>> > -e 'PGADMIN_DEFAULT_PASSWORD=userpwd' \
>> > -e 'PGADMIN_ENABLE_TLS=True' \
>> > -d dpage/pgadmin4
>> >
>> > I have created the key, certificates required and am pointing to the
>> correct directories. Would anyone who has connected through Docker be able
>> to shed some light?
>> >
>> > Thanks
>>
>>
>>
>
> --
> Thanks and Regards,
> Aditya Toshniwal
> pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
> "Don't Complain about Heat, Plant a TREE"
>
>
--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"
From | Date | Subject | |
---|---|---|---|
Next Message | Akshay Joshi | 2020-06-26 05:57:27 | Re: Installation for 32-bit windows! |
Previous Message | Diego Augusto Molina | 2020-06-25 17:31:02 | OWNER not being quoted for FOREIGN TABLEs code |