How to update portainer

In this article let’s discuss about How to update portainer. Let’s go through the following methods without any delay.

Method 1:

docker stop portainer
docker rm portainer
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

Hope the above solution works.

Realted Posts : How to stop nginx on ubuntu?