tianon / docker-postgres-upgrade

a PoC for using "pg_upgrade" inside Docker -- learn from it, adapt it for your needs; don't expect it to work as-is!
https://hub.docker.com/r/tianon/postgres-upgrade/
MIT License
1.05k stars 114 forks source link

Upgrade from postgres:11.5-alpine to postgres:12.0-alpine #19

Closed micemuni closed 4 years ago

micemuni commented 4 years ago

Hi Team, I am using docker & currently running 11.5-alpine postgres I would like to upgrade to 12.0-alpine postgres. But If i use this "tianon/docker-postgres-upgrade" then i got error because 11.5 / 12.0 version folder is not there.

Please help me how to upgrade in this case. Thank you in advance

wglambert commented 4 years ago

This one is 11.5.3 https://github.com/tianon/docker-postgres-upgrade/blob/dc7bf910c75ed6bf9dbe9d761e16abf67f6d2cd1/11-to-12/Dockerfile#L5-L6

What error did you get when you tried using it

micemuni commented 4 years ago

Hi, I have 2 question, please clarify. -->Actually i am using "11.5-alpine" but here in Dockerfile mentioned "11.5-3.pgdg100+1". will this work.??
--> I am going to upgrade to "12.0-alpine", will this work..?

If this work with out changes any of this.??

Or if there needs some changes, then please tell me.

Thank you in advance.

micemuni commented 4 years ago

I could see alpine have different configs

micemuni commented 4 years ago

@wglambert @tianon Could you please help me on this alpine version 11.5 to 12.0.? Need to upgrade version with out data lose.

tianon commented 4 years ago

I'm sorry, but this really isn't a support forum and you'd be much better off with something dedicated to support like the Docker Community Forums, the Docker Community Slack, or Stack Overflow.