2 ms·
Why use a docker container? I run Postgres as is, what would I gain with running it in a container?
by Biganon 1y ago
Why use a docker container? I run Postgres as is, what would I gain with running it in a container?
- Nextgrid 1y agoIt makes the whole thing is configured in a docker-compose file (or your raw Docker CLI invocation) + the data volume. So as long as you have those two things you can replicate it and move it to other hosts regardless of their distro. Compare that with using your distro's packaged version where you can have version variations, variations in default config or file path locations, etc.
- aflukasz 1y agoYou can decouple Postgres and surrounding userspace upgrade cycles from your host os, if this is something that you want. Or run multiple different PG versions (have independent upgrades schedule) without being tied to the host os specific mechanisms for that.