docker-library / postgres

Docker Official Image packaging for Postgres
http://www.postgresql.org
MIT License
2.16k stars 1.13k forks source link

pg_dumpall fails in postgres:14.8-bookworm #1101

Closed jorenham closed 8 months ago

jorenham commented 1 year ago

Running docker-compose exec db14 pg_dumpall --clean in the postgres:14.8-bookworm image results in:

popen failure: Cannot allocate memory
pg_dumpall: error: The program "pg_dump" is needed by pg_dumpall but was not found in the
same directory as "/usr/lib/postgresql/14/bin/pg_dumpall".
Check your installation.

This is working fine in postgres:14.8-bullseye.


For some context:

docker-compose exec db14 cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
docker-compose exec db14 psql --version
psql (PostgreSQL) 14.8 (Debian 14.8-1.pgdg120+1)
tianon commented 1 year ago

This is definitely going to be the same seccomp issue mentioned in #1100 -- you'll want to update libseccomp2 on your host (and Docker/runc).