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
- Download the component installation package of the latest version by referring to Obtaining Software Packages.
- 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 - 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
- (Optional) Upgrade Ascend Docker Runtime in the default path.
- (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
- Docker (or Kubernetes integrated with Docker)
- Check whether Ascend Docker Runtime is successfully upgraded to the latest version by referring to Confirming Component Status.
- (Optional) Restore the old version. Download the installation package of the old version and repeat Step 2 to Step 5.
Parent topic: Upgrade Process