This article refers to the nextcloud docker-compose installation in this article https://stangneth.com/2022/02/02/nextcloud-with-docker-compose/#more-269
Go to your nextcloud homefolder and update the container-image.
cd /home/nextcloud docker-compose up -d
The container-image is now updated but the nextcloud container itself not as you can see at the version number after login in to your nextcloud instance. You need to perform these additional command.
docker exec -it nextcloud updater.phar
Now recheck your version number if its updated.
No Comments on Update Nextcloud in a docker environment