Attempting to install with docker - ERROR: security label provider "anon" is not loaded
Hi all, I'm trying to anonymize a postgres database using this tool. I was following the install with docker guide when I encountered an error. https://postgresql-anonymizer.readthedocs.io/en/stable/INSTALL.html#install-with-docker
I ran the container using:
docker run -e "POSTGRES_PASSWORD=root" -t -d --name anon -p 6543:5432 registry.gitlab.com/dalibo/postgresql_anonymizer
This gave me the following error:
/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init_anon.sh
Loading extension into template1 and postgres database
NOTICE: installing required extension "tsm_system_rows"
NOTICE: installing required extension "pgcrypto"
2021-08-05 14:34:58.880 UTC [68] ERROR: security label provider "anon" is not loaded
2021-08-05 14:34:58.880 UTC [68] STATEMENT: CREATE EXTENSION IF NOT EXISTS anon CASCADE;
ERROR: security label provider "anon" is not loaded
As I haven't found any other instances of this error online except for this issue I'm unsure what to do next, as the installation instructions don't give any further pointers. Does anyone know what could cause this?
- Jakob