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.