Re-pull the latest docker image and create another container with the same volume.
For someone who used my "How-to-use" commands to install Uptime Kuma, you can update by this:
docker pull louislam/uptime-kuma:1 docker stop uptime-kuma docker rm uptime-kuma # Default docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1 # If you are not using default value # docker run -d --restart=always -p <YOUR PORT>:3001 -v <YOUR VOLUME>:/app/data --name uptime-kuma louislam/uptime-kuma:1
PS: For every new release, it takes some time to build the docker image, please be patient if it is not available yet.
cd "<YOUR docker-compose.yml DIRECTORY>" docker compose pull docker compose up -d --force-recreate
cd <uptime-kuma-directory> # Update from git git fetch --all --tags git checkout 1.23.16 --force # Install dependencies and prebuilt npm install --production npm run download-dist # Restart pm2 restart uptime-kuma
Deleting the wiki page "🆙 How to Update" cannot be undone. Continue?