4 ms·
There is an occasional downside with the Postgres container though... no automatic upgrade path between major versions: https://github.com/docker-library/postg
by justinclift 3y ago
There is an occasional downside with the Postgres container though... no automatic upgrade path between major versions:
https://github.com/docker-library/postgres/issues/37 https://github.com/docker-library/postgres/issues/37
So, if you want to keep on a supported version of PostgreSQL then every few years you'll need to figure something out.
Hopefully that gets fixed at some point though.
My in-development "automatically upgraded PostgreSQL" container is about ~400MB though, which is ~200MB more than the standard one. For my use-cases the extra space isn't relevant, but for other people it probably would be.
- justinclift 3y agoJust in case anyone here stumbles over this and is interested, there's now a PostgreSQL docker image that automatically upgrades the PostgreSQL data files before launching the server: https://hub.docker.com/repository/docker/pgautoupgrade/pgautoupgrade https://hub.docker.com/repository/docker/pgautoupgrade/pgaut...