What to do with the following message?
My portainer (container) is running on a virtual Ubuntu machine on my FreeNas server with the name docker.
Before upgrading portainer on the virtual machine. I will take a snapshot with the FreeNas filing system. This way I can rollback in case it is needed.
Opening ssh session. I will do this with putty my ssh client of choice.
"sudo -i" to stay in a root session.
List the containers.
"docker container ls"
Stop the container portainer.
"docker stop portainer"
Pull the latest image of portainer.
"docker pull portainer/portainer-ce"
Remove docker portainer.
"docker rm portainer"
Start the new portainer container.
"docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce"
The only thing to do is to delete the old image of the old portainer.
"docker image ls"
"docker image rm <IMAGE ID>"
Know time to check if everything is working again.
Comments
Post a Comment