diff --git a/docs/v2.0-be/upgrade/upddocker.md b/docs/v2.0-be/upgrade/upddocker.md index 9fea62b..699b17f 100644 --- a/docs/v2.0-be/upgrade/upddocker.md +++ b/docs/v2.0-be/upgrade/upddocker.md @@ -7,83 +7,54 @@ Assuming you've used our recommended deployment scripts: when upgrading to the latest version of Portainer, use the following commands: - - ```shell - docker stop portainer - ``` - - ```shell - docker rm portainer - ``` - - Those 2 commands will stop and remove the container respectively. Doing this will NOT remove your other applications/containers/etc. - - -Now that you have stopped and removed the old version of Portainer, you can run this command - - +Now that you have stopped and removed the old version of Portainer, you will want to ensure you have the latest version of the image locally. You can do this with a `docker pull` command: ```shell +docker pull portainer/portainer-ee +``` +Finally, deploy the updated version of Portainer: +```shell docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee - ``` - - -That will deploy the newest version of Portainer on your system, using the persistent data and upgrade the DB - - - -Now you can go to http://your-server-address:9000 and login. You should notice that the bottom left corner looks different than it did before. There is no more update nag and the version is no longer shown next to the Portainer logo. - - - +The newest version of Portainer will now be deployed on your system, using the persistent data from the previous version, and will upgrade the Portainer database for the new version. +Now you can go to http://your-server-address:9000 and login. You should notice that the update notification has disappared and the version number has updated. ### Agent Only Upgrade - - When upgrading to the latest version of Portainer Agent, use the following commands: - - ```shell - docker stop portainer_agent - ``` - - ```shell - docker rm portainer_agent - ``` Those 2 commands will stop and remove the container respectively. Doing this will NOT remove your other applications/containers/etc. - - -Now that you have stopped and removed the old version of Portainer Agent, you can run this command - - +Next, pull the updated version of the image: ```shell +docker pull portainer/agent +``` +Finally, start the agent with the updated image: + +```shell docker run -d -p 9001:9001 --name portainer_agent --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes portainer/agent - ``` ## :material-note-text: Notes diff --git a/docs/v2.0/upgrade/upddocker.md b/docs/v2.0/upgrade/upddocker.md index cf7d3bf..893d0a2 100644 --- a/docs/v2.0/upgrade/upddocker.md +++ b/docs/v2.0/upgrade/upddocker.md @@ -7,46 +7,30 @@ Assuming you've used our recommended deployment scripts: when upgrading to the latest version of Portainer, use the following commands: - - ```shell - docker stop portainer - ``` - - ```shell - docker rm portainer - ``` - - Those 2 commands will stop and remove the container respectively. Doing this will NOT remove your other applications/containers/etc. - - -Now that you have stopped and removed the old version of Portainer, you can run this command - - +Now that you have stopped and removed the old version of Portainer, you will want to ensure you have the latest version of the image locally. You can do this with a `docker pull` command: ```shell +docker pull portainer/portainer-ce +``` +Finally, deploy the updated version of Portainer: +```shell docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce - ``` - - -That will deploy the newest version of Portainer on your system, using the persistent data and upgrade the DB - - - -Now you can go to http://your-server-address:9000 and login. You should notice that the bottom left corner looks different than it did before. There is no more update nag and the version is no longer shown next to the Portainer logo. +The newest version of Portainer will now be deployed on your system, using the persistent data from the previous version, and will upgrade the Portainer database for the new version. +Now you can go to http://your-server-address:9000 and login. You should notice that the update notification has disappared and the version number has updated. #### Upgrading from Version <1.24.1 @@ -62,42 +46,30 @@ docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /va ``` At this point, you are running version 1.24.1 which can be verified by to http://your-server-address:9000, logging in and confirming the version number in the lower left. To complete the upgrade, perform the steps defined in the previous section. - - ### Agent Only Upgrade - - When upgrading to the latest version of Portainer Agent, use the following commands: - - ```shell - docker stop portainer_agent - ``` - - ```shell - docker rm portainer_agent - ``` Those 2 commands will stop and remove the container respectively. Doing this will NOT remove your other applications/containers/etc. - - -Now that you have stopped and removed the old version of Portainer Agent, you can run this command - - +Next, pull the updated version of the image: ```shell +docker pull portainer/agent +``` +Finally, start the agent with the updated image: + +```shell docker run -d -p 9001:9001 --name portainer_agent --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes portainer/agent - ``` ## :material-note-text: Notes