Upgrade to new version of Postgres in Docker
This example upgrades PostgreSQL 9.4 to 9.6
See also https://github.com/docker-library/postgres/issues/37#issuecomment-277621597
Note: you will need compatible pg_dumpall
and psql
binaries in your path
(outside of docker), probably at least at the version you're migrating from.
If you don't have those on your local machine, you can use the one in the docker
container. Something like this