0

I am trying to determine the libraries needed for pg_restore in the official postgres:15 docker image, but when I run ldd /usr/bin/pg_restore inside the container it returns this error: not a dynamic executable.

When I install the same postgres client version 15.12 directly in my VM, ldd works as expected.

What could be wrong that ldd is not working properly on a docker container?

1 Answer 1

2

Nothing is wrong with ldd — in postgres:15, /usr/bin/pg_restore is a link to /usr/share/postgresql-common/pg_wrapper which is a Perl script, not an ELF dynamic executable.

1
  • Didn't know that and I didn't check before asking 🤦‍♂️... thx a lot Commented May 13 at 9:49

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.