Upgrading
Update Pocket ID with Docker Compose or the binary, and what to check before a major release.
Pocket ID migrates its database on its own when a new version starts. Within a major version, such as 2.x, upgrades don’t need any changes to your setup.
Read the changelog before you upgrade, and back up the data folder, or your PostgreSQL database, so you can go back if something goes wrong.
Data export and import can create the backup.
The v2 image tag follows the latest 2.x release, so pulling it gets the update:
docker compose pulldocker compose up -dTo stay on one version, use a full version tag such as ghcr.io/pocket-id/pocket-id:v2.17.0, and change it to upgrade.
Stop Pocket ID, replace the binary with the one for your system from the latest release, and start it again:
curl -fL -o pocket-id https://github.com/pocket-id/pocket-id/releases/latest/download/pocket-id_linux_amd64chmod +x pocket-id./pocket-idPocket ID refuses to start an older version on a database that a newer one already migrated, unless you set ALLOW_DOWNGRADE=true.
Major releases
Section titled “Major releases”A major release can change settings or behavior, so it comes with a migration guide:
- Migrate to v2, from 1.x
- Migrate to v1, from 0.x