Updating Containerized Services
Keeping your services up to date is crucial for security and new features. Since we are using Podman (or Docker), updating is relatively straightforward.
The General Process
- Pull the latest image.
- Stop and Remove the current container.
- Re-create the container with the new image.
Using Podman Auto-Update
If you are using Podman Quadlets (systemd integration), you can enable auto-updates.
- Add
AutoUpdate=registryto your.containerfile. - Run
podman auto-update.
Manual Update (Docker Compose / Podman Compose)
Navigate to your service directory:
cd /opt/services/nextcloud
Pull the new images:
docker-compose pull
Restart the containers:
docker-compose up -d