Skip to content

Add a tip to the Docker page for persisting data via the -v option - #1060

Merged
Andriciuc merged 1 commit into
percona:18from
pcimring:docker-persist-data-volume
Nov 16, 2026
Merged

Andriciuc merged 1 commit into
percona:18from
pcimring:docker-persist-data-volume

Conversation

@pcimring

Copy link
Copy Markdown

Summary

  • Add a tip under step 1 of the Docker page that starts the container with a named volume (-v pg-data:/data/db), so the data persists after the container is removed.
  • Provide the image's data directory (/data/db) so that the reader does not need to inspect the image to find the path to mount.

Verification

  • Built the site locally with mkdocs build.
  • Ran the command as written with percona/percona-distribution-postgresql:18.6 on arm64: created a table, removed the container, started a new one with the same -v option, and the data was still there.

🤖 Generated with Claude Code

Show -v pg-data:/data/db so the data survives removing the container.
/data/db is the image's data directory and the page does not state it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pcimring

Copy link
Copy Markdown
Author

Hi @Andriciuc,

Could you take a look when you have a moment?

#1061 is a companion tip on the same page.

Thanks!

@Andriciuc Andriciuc left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the ping!

@Andriciuc
Andriciuc merged commit ecb924c into percona:18 Nov 16, 2026
@pcimring

Copy link
Copy Markdown
Author

Thanks for merging, @Andriciuc! When you have a moment, #1061 is the companion tip on the same page.

@pcimring
pcimring deleted the docker-persist-data-volume branch November 16, 2026 15:36
@zverulacis

Copy link
Copy Markdown

@pcimring, to thank you for this PR, we'd like to send you a Percona contributor challenge coin.

To receive it, fill in this form: https://forms.gle/b5qovTkTGVod6e2YA (or email community-team@percona.com with the link to this PR).

Then leave a quick "done" here so we know it's you. And send us a pic when the coin arrives 📸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants