Re: problem with docker image

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Mickaël SALMON <ms(at)sylob(dot)com>
Cc: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: Re: problem with docker image
Date: 2020-09-10 08:04:22
Message-ID: CA+OCxoz9shv=3AtaVK2HEz=jjyUdJ51X5QazBpnMKwzjbSj7Dg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Thu, Sep 10, 2020 at 8:29 AM Mickaël SALMON <ms(at)sylob(dot)com> wrote:

> Hi community,
>
> I have a problem mapping file *servers.json* with latest docker image.
>
> Here is how I run my container :
>
> docker run --name pgadmin4 --restart unless-stopped -p 80:80 -e
> 'PGADMIN_DEFAULT_EMAIL=XXX' -e 'PGADMIN_DEFAULT_PASSWORD=XXX' -v
> /root/pgadmin4/servers.json:/pgadmin4/servers.json -d dpage/pgadmin4
>
>
> *servers.json* is mapped to a directory :
>
> ms-alpine:~/pgadmin4# ls -lh
> total 4K
> *d*rwxr-xr-x 2 root root 4.0K Sep 10 09:26 servers.json
>
> Where am I wrong ?
>

I suspect the container (which runs under UID 5050) cannot read files in
/root on your host. The file has permissions that would allow that, but
does the directory it's in?

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Mickaël SALMON 2020-09-10 10:35:28 Re: problem with docker image
Previous Message Mickaël SALMON 2020-09-10 07:29:17 problem with docker image