Using docker-repack on this image results psql missing:
FROM debian:12.12-slim
RUN apt-get update -y && apt-get install -y --no-install-recommends postgresql-client
Here is the image before repacking:
root@8e3b2770049c:/# stat /bin/psql
File: /bin/psql -> ../share/postgresql-common/pg_wrapper
Size: 37 Blocks: 8 IO Block: 4096 symbolic link
Device: 0,93 Inode: 14663808 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2025-09-17 09:02:15.494044849 +0000
Modify: 2025-06-03 13:03:54.000000000 +0000
Change: 2025-09-17 09:02:13.960043354 +0000
Birth: 2025-09-17 09:02:13.959043353 +0000
root@8e3b2770049c:/# which psql
/usr/bin/psql
root@8e3b2770049c:/# stat /usr/bin/psql
File: /usr/bin/psql -> ../share/postgresql-common/pg_wrapper
Size: 37 Blocks: 8 IO Block: 4096 symbolic link
Device: 0,93 Inode: 14663808 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2025-09-17 09:02:15.494044849 +0000
Modify: 2025-06-03 13:03:54.000000000 +0000
Change: 2025-09-17 09:02:13.960043354 +0000
Birth: 2025-09-17 09:02:13.959043353 +0000
root@8e3b2770049c:/# stat /usr/share/postgresql-common/pg_wrapper
File: /usr/share/postgresql-common/pg_wrapper
Size: 10481 Blocks: 24 IO Block: 4096 regular file
Device: 0,93 Inode: 14663790 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2025-09-17 09:02:15.779045126 +0000
Modify: 2023-10-19 12:38:24.000000000 +0000
Change: 2025-09-17 09:02:13.959043353 +0000
Birth: 2025-09-17 09:02:13.957043351 +0000
/usr/share/postgresql-common/pg_wrapper is missing after repacking. Perhaps the two layers of symlinking cause the issue?
Using
docker-repackon this image resultspsqlmissing:Here is the image before repacking:
/usr/share/postgresql-common/pg_wrapperis missing after repacking. Perhaps the two layers of symlinking cause the issue?