Why is pg_restore segfaulting in Docker?
问题 I am testing a backup/restore procedure for my postgres DB inside a docker container. I dump my db like this: $ docker exec -ti my_postgres_container pg_dump -Fc -U postgres > db.dump Afterwards, I try to restore it like this: $ docker cp db.dump my_postgres_container:/db.dump $ docker exec -ti my_postgres_container pg_restore -U postgres -c -d postgres db.dump The command returns without output or errors, but nothing happens. So instead, I tried to restore it manually like this: $ docker cp