Check the release notes before upgrading. A new version may update the database, so always back up your data first.
If you customized templates or other files, reapply those changes to the new version. Older files may not be compatible with the new release.
Make sure your database, configuration and media are stored outside the container so they survive its replacement.
docker compose pull traccar
docker compose up -d --no-deps traccar
Run these commands from the folder containing your Compose file. Replace traccar if your service has a different name. Keep the existing database and volumes.
For a standalone Docker container, recreate it with the new image and the same mounts, environment settings and ports.
Log in and check that devices are reporting and history is available. If the server does not start, check the logs for errors. Database updates can take longer on large installations.
To return to the previous version, stop Traccar, reinstall that version and restore your pre-upgrade backup. Changing only the application version does not undo database updates. Restoring the backup also loses any data received since it was taken.