DB Dump Create a dump docker exec -it d6bc4f23a7dc pg_dump -U hillel postgres > dump.sql Copy the dump from docker image: docker exec -it cat xxx > dump.sql docker cp d6bc4f23a7dc:dump.sql dump-xx.sql drop tables in db Make sure the dump is in the image: docker cp dump.sql d6bc4f23a7dc:/tmp/dump.sql Import the dump: docker exec -it bash psql -U hillel < dump.sql