Upgrade to PostgreSQL 14.1
Successfully upgraded the Docker container on the Database Host by means of automated Watchtower container.
Including migrating datastore from version 13 to 14.
cd /var/docker_storage/postgres/
mkdir -p 14/data
chown -R postgres. 14/
docker pull tianon/postgres-upgrade:13-to-14
docker stop bierochs-watchtower
docker stop bierochs-postgres-13-backup
docker stop bierochs-postgres-13
docker run --privileged --rm --user "$(id postgres -u):$(id postgres -g)" -v /var/docker_storage/postgres:/var/lib/postgresql:z -v /etc/passwd:/etc/passwd:ro tianon/postgres-upgrade:13-to-14 --link
vim 14/data/pg_hba.conf
...
hostnossl all all 192.168.0.0/16 trust
hostnossl all all 172.17.0.0/24 trust
docker pull registry.bierochs.org/postgres:latest
docker run --name=bierochs-postgres-14 --user "$(id postgres -u):$(id postgres -g)" -d -p 5432:5432 -v /etc/passwd:/etc/passwd:ro -v /var/docker_storage/postgres/14/data:/var/lib/postgresql/data:z -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=******** registry.bierochs.org/postgres:latest
docker logs -f bierochs-postgres-14