
# 因缺乏Ascend Docker Runtime导致无法启动容器
当需要手动启动容器时，若启动的容器需要依赖Ascend Docker Runtime，启动容器时提示缺乏Ascend-Docker-Runtime。
#### 解决办法
参考如下流程安装。
1. [安装包](https://gitee.com/ascend/mind-cluster/releases/tag/v7.0.RC1)下载完成后，首先进入安装包（run包）所在路径。
   ```
   cd <path to run package>
   ```
   
2. 执行以下命令，为软件包添加可执行权限。
   ```
   chmod u+x Ascend-docker-runtime_{version}_linux-{arch}.run
   ```
   
3. 执行如下命令，校验软件包安装文件的一致性和完整性。
   ```
   ./Ascend-docker-runtime_{version}_linux-{arch}.run --check
   ```
   回显示例如下：
   ```
   [WARNING]: --check is meaningless for Ascend-docker-runtime and will be discarded in the future
   Verifying archive integrity... ./Ascend-docker-runtime_7.0.RC1_linux-x86_64.run does not contain an embedded SHA256 checksum.
   ...
    All good.
   ```
   
4. 执行以下命令查询containerd.toml配置文件的路径，回显中"/root/kubernetes/config/containerd.toml"就是配置文件路径。
   ```
   # systemctl status containerd-k8s.service
   ● containerd-k8s.service - containerd container runtime
      Loaded: loaded (/usr/lib/systemd/system/containerd-k8s.service; enabled; vendor preset: disabled)
      Active: active (running) since Fri 2025-08-08 17:15:59 CST; 16h ago
        Docs: https://containerd.io
    Main PID: 277408 (containerd)
       Tasks: 204
      Memory: 3.3G
      CGroup: /system.slice/containerd-k8s.service
              ├─ 277408 /root/kubernetes/bin/containerd --config /root/kubernetes/config/containerd.toml
              ├─ 280699 /root/kubernetes/bin/containerd-shim-runc-v2 -namespace k8s.io -id 0b3adc703ae7833907ed0ee872f15e457a4f88775>
              ├─ 282574 /root/kubernetes/bin/containerd-shim-runc-v2 -namespace k8s.io -id 66533441d75eca2ddf2949931ef5fdf64b046ee38>
              ├─ 283017 /root/kubernetes/bin/containerd-shim-runc-v2 -namespace k8s.io -id 6163086fdd9e0bd09426ce8c6c9dc18addf1966fc>
              ├─1690688 /root/kubernetes/bin/containerd-shim-runc-v2 -namespace k8s.io -id 762d8274ccef5c7349ba5033fc0bec80519b5d709>
              ├─1690739 /root/kubernetes/bin/containerd-shim-runc-v2 -namespace k8s.io -id 48938c5f625451f7096b8320583b0bee41c62af1a>
              └─1701081 /root/kubernetes/bin/containerd-shim-runc-v2 -namespace k8s.io -id 3ee918de0f93a0496ab66b4f8d4ea83d18622f913
   ```
   
5. 通过以下命令安装Ascend Docker Runtime。
   - 安装到默认路径下，注意需要替换*\<containerd.toml\>* 为containerd配置文件containerd.toml的实际路径。
     ```
     ./Ascend-docker-runtime_{version}_linux-{arch}.run --install --install-scene=containerd --config-file-path=<containerd.toml>
     ```
     
   
   - 安装到指定路径下，执行以下命令，"--install-path"参数为指定的安装路径。
     ```
     ./Ascend-docker-runtime_{version}_linux-{arch}.run --install --install-scene=containerd --install-path=<path> –-config-file-path=<containerd.toml>
     ```
     
   
   
   回显示例如下，表示安装成功。
   ```
   Uncompressing ascend-docker-runtime  100%
   [INFO]: installing ascend docker runtime
   ...
   [INFO] Ascend Docker Runtime install success
   ```
   
 
