Upgrading Ascend Docker Runtime

Only Ascend Docker Runtime can be upgraded using commands. For the cluster scheduling components, re-install them after uninstalling them for upgrade.

Currently, only the root user can upgrade Ascend Docker Runtime.

Prerequisites

Procedures in Environment Check have been completed.

Procedure

  1. Download the component installation package of the latest version by referring to Obtaining Software Packages.
  2. Grant the execute permission on the software package in the directory where the installation package (.run) is stored.
    cd <path to run package>
    chmod u+x Ascend-docker-runtime_{version}_linux-{arch}.run
  3. Upgrade Ascend Docker Runtime.
    • (Optional) Upgrade Ascend Docker Runtime in the default path.
      ./Ascend-docker-runtime_{version}_linux-{arch}.run --upgrade
    • (Optional) Upgrade Ascend Docker Runtime in a specified path. --install-path is used to specify the upgrade path.
      ./Ascend-docker-runtime_{version}_linux-{arch}.run --upgrade --install-path=<path>

      If the following information is displayed, the upgrade is successful.

      1
      2
      3
      Uncompressing ascend-docker-runtime  100%
      ...
      [INFO] ascend-docker-runtime upgrade success
      
  4. (Optional) Restart the container for the new Ascend Docker Runtime to take effect. Skip this step if the installation path and installation parameters do not need to be changed.
    • Docker (or Kubernetes integrated with Docker)
      systemctl daemon-reload && systemctl restart docker
    • Containerd (or Kubernetes integrated with Containerd)
      systemctl daemon-reload && systemctl restart containerd
  5. Check whether Ascend Docker Runtime is successfully upgraded to the latest version by referring to Confirming Component Status.
  6. (Optional) Restore the old version. Download the installation package of the old version and repeat Step 2 to Step 5.