Bitnami-docker-postgresql-repmgr:11 cant install packages

Keywords: PostgreSQL - Linux - How to - Other
Im image bitnami-docker-postgresql-repmgr:11
and i need to build from my dockerfile as i use an existing database for the replication, these commands dont work :

apt-get update -y
apt-get install postgis -y

i get the error:
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (2: No such file or directory)

If i try to “mkdir -p /var/lib/apt/lists/partial” from dockerfile i get the error
mkdir: cannot create directory ‘/var/lib/apt/lists’: Permission denied

what can i do ?

I have to install postgis extension for my existing database.

Hi @batchenr,

We provide technical support for our containers in our Github repositories. Our team is actively monitoring them and will be glad to help you there, usually within a business day, and the whole community will benefit from your contribution. Could you please post your question by creating a new issue in the PostgreSQL-Repmgr repo?


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.