---
title: "Discussion on \"How to upgrade Postgres to a new major version in Docker\" | Hashnode"
description: "Discussion on \"How to upgrade Postgres to a new major version in Docker\". You can't upgrade Postgres to a new major version in Docker by changing the image tag. Each major version (16, 17, 18) stores data on disk in its own format, so postgres:18 refuses to start on a volum"
url: "https://hashnode.com/posts/how-to-upgrade-postgres-to-a-new-major-version-in-docker/6af183be97c64d348b07bef5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to upgrade Postgres to a new major version in Docker](https://octave.hashnode.dev/how-to-upgrade-postgres-to-a-new-major-version-in-docker?utm_source=hashnode&utm_medium=feed)

You can't upgrade Postgres to a new major version in Docker by changing the image tag. Each major version (16, 17, 18) stores data on disk in its own format, so postgres:18 refuses to start on a volum

5d ago · 14 min read · octave.hashnode.dev  
Read the article

-   [#postgres](https://hashnode.com/tag/postgres)
-   [#docker](https://hashnode.com/tag/docker)
-   [#database](https://hashnode.com/tag/database)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[octave Nkurunziza](https://hashnode.com/@octave)

@octave

  
[View profile](https://hashnode.com/@octave)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
