According to this documentation one could create a database backup


version: '3'
    build: db_data/
      - db


docker-compose -f docker-compose.yml -f docker-compose.admin.yml \
run dbadmin db-backup

results initially in:

ERROR: Error processing tar file(archive/tar: invalid tar header): 

and when it is run for the second time:

ERROR: Error processing tar file(exit status 1): unexpected EOF

1 Answer 1


The number of downvotes on the link that is mentioned in the question could indicate that there are issues with the instructions.

Perhaps one could use native commands to backup the database. For example, this answer shows how to backup a postgres database that runs in docker using the pg_dump command.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.