📅  最后修改于: 2022-03-11 15:00:38.931000             🧑  作者: Mango
docker exec -i pg_container_name /bin/bash -c "PGPASSWORD=pg_password pg_dump --username pg_username database_name" > /desired/path/on/your/machine/dump.sql