Update Portainer
Update your machine to be up to date
Get the container id of portainer
Stop all the containers and also the container of portainer
Remove the container of portainer
Remove portainer Image currently installed here version 2.19.0
Run the first command like setting up portainer replace version 2.19.0 with the newst version