How to upgrade your PostgreSQL version using Docker
Recently, I need to upgrade my production PostgreSQL version from 11 to 12. I originally thought it would be simple by adjust docker-tag to newer version.
Unfortunately, when the container show up and has error as below
Make back up by pg_dumpall
Make new PostgreSQL container has your desire version with empty volumne
Copy backup file to container volumne and import it