restroe pg_dump example
docker exec -it (container-name) bash # inter container # go dump file location it will easy to target restore file psql -U username -d dbname < filename.sql # then run this for restore -- For Postgres versions 9.0 or earlier psql -U username -d dbname -1 -f filename.sql
Source: stackoverflow.com