This one is a little bit more tricky than the other containers themselves, because they can be upgraded in the Portainer GUI. This is not possible for the Portainer container itself. In order to upgrade it, we need to get the image hash while inside Portainer first before we stop the container. This will all be explained below. This is specific to my installation.