This guide only apply to the official Piwigo image, if you are using a Linux server container please use their documentation instead.
If you want to switch to the official image you can follow this guide
Containers' version numbers will always match the Piwigo version, starting from 16.3.0 they will have an extra letter after to allow container specific updates
You should already be able to see if any update is available in the update interface, if you want to update to the minor version use the first number the tag has (eg: 16)
Go to the taglist and search the tag you want to update to
To make sure updating is risk free, you should make a backup of both the database and the files of your Piwigo instance
You can create a backup of your database using the following command:
docker exec -it piwigo-db-1 mariadb-dump -u piwigodb_user -p "piwigodb" | tee db_dump.sql
The database password should be the same as the one you put in .env (be sure to subsitue the container name so it matches yours)
You can now stop your container by running docker compose down
To backup any image/photo uploaded to your Piwigo, copy the following folders:
./piwigo-data/piwigo/
├── galleries
├── local
└── upload
Rename your compose and env files by adding a .bak at the end (eg: .env.bak)
.envYou can fetch the latest version of the compose.yaml file using the following command:
curl -O "https://raw.githubusercontent.com/Piwigo/piwigo-docker/refs/heads/main/compose.yaml"
Check the GitHub wiki to get the .env file matching your version
Pull the image with docker compose pull and restart it with docker compose up.
Once you have confirmed everything works you can detatch the terminal by pressing d
You can get some help on the forum or find your own answers in the documentation