LogoLogo
  • Portainer documentation
  • Portainer
    • Quick Start
    • Deploying on Windows Server with Docker EE 19.03
    • Advanced Installation
    • Upgrading Portainer
  • The Portainer Agent
    • Why use the Portainer Agent?
    • Deploy The Portainer Agent
    • Upgrading the Portainer Agent
  • Contributing to Portainer
    • Contributing to the Portainer Project
      • Install required tools on MacOS
      • Install required tools on Linux
  • Other Information
    • Testing Methodology at Portainer
    • Configuring LDAP in Portainer
Powered by GitBook
On this page
  • Through the Portainer UI
  • Through the CLI

Was this helpful?

  1. The Portainer Agent

Upgrading the Portainer Agent

PreviousDeploy The Portainer AgentNextContributing to the Portainer Project

Last updated 6 years ago

Was this helpful?

The Portainer Agent is simple to upgrade, this process can be done either or .

Through the Portainer UI

The simplest way to upgrade the Portainer Agent is through the Portainer UI. Step 1: Navigate to the Services view through the menubar of Portainer and select the checkbox of thhe Agent service you wish to upgrade, and click the update button.

Step 2: A message will appear asking if you want to force an update. Make sure that 'Pull latest image version' is selected as shown below before clicking the update button.

A confirmation message like the one below should appear in the top right corner of the Portainer UI if the Agent has been successfully updated.

Through the CLI

Note: You need to make sure you are accessing the swarm manager node via the CLI to issue the below command

Enter the below command into the CLI (assuming your Docker service is called portainer). You can replace portainer with the name of your service if yours is named something different.

docker service update --image portainer/portainer:latest portainer

You are done!

through the Portainer UI
through the CLI