Updated on 2024-05-16 GMT+08:00

Upgrading a Plug-in

You can upgrade plug-ins of a target server.

Constraints

  • Only Docker containers are supported. Containerd containers are not supported.
  • The Docker engine version is 18.06.0 or later.
  • The Docker API version is 1.38 or later.
  • Only Linux servers are supported.
  • Only the x86 and Arm hardware architectures are supported.
  • The HSS container edition has been enabled.
  • Currently, only Huawei Cloud online servers are supported.

Procedure

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  3. In the navigation tree on the left, choose Installation & Configuration and click the Plug-in Settings > Docker plug-in tab. Click Plug-in upgrade guide, obtain the upgrade commands from the slide-out panel, and click Copy.
  4. Remotely log in to the server where the plug-in is to be upgraded as the root user.

    • Log in to the ECS console, locate the target server, and click Remote Login in the Operation column to log in to the server. For details, see Login Using VNC.
    • If your server has an EIP bound, you can also use a remote management tool, such as PuTTY or Xshell, to log in to the server and upgrade the plug-in on the server as user root.

  5. Run the following command to access the /tmp directory:

    cd /tmp/

  6. Create linux-host-list.txt, which will contain the server private IP addresses where the plug-in is to be upgraded:

    Command syntax:

    echo 127.8.8.8 22 root rootPassword >> linux-host-list.txt
    Or echo 127.8.8.8 22 user userPassword rootPassword >> linux-host-list.txt

    To specify multiple IP addresses, write multiple commands, each in a separate line.

    Example:

    echo 127.8.8.1 22 root rootPassword >> linux-host-list.txt
    echo 127.8.8.2 22 user userPassword rootPassword >> linux-host-list.txt
    echo 127.8.8.3 22 root rootPassword >> linux-host-list.txt

  7. Press Enter to save the IP address. Run the cat linux-host-list.txt command to verify the IP addresses have been added.
  8. Copy the batch upgrade commands to the command box and press Enter. The upgrade starts automatically.

    If the installation package cannot be downloaded, check to ensure the DNS can resolve the domain name in the installation commands.

  9. If remote_upgrade finished. [OK] is displayed, the upgrade is successful. Wait for 3 to 5 minutes and choose Installation & Configuration and click the Plug-in Settings tab to check the Docker plug-in status of the panel server.