docker failed to create task for container: failed to create shim task no such file
时间: 2023-09-25 17:07:06 浏览: 173
docker安装完成启动不了(报错:Failed to start Docker Application Container Engine.)
引用和中提到的错误信息是关于Docker的。这些错误表明在创建Docker容器任务时出现了问题,具体原因是找不到或加载不了`libseccomp.so.2`共享库文件。`libseccomp.so.2`是用于安全计算的一个库文件。要解决这个问题,可以按照以下步骤进行操作:
1. 使用下面的命令在系统中查找`libseccomp.so.2`文件:
```
find / -name libseccomp.so.2
```
2. 一旦找到了该文件,将其复制到`/usr/lib64/`目录下,可以使用如下命令进行复制(假设找到的文件路径为`/path/to/libseccomp.so.2`):
```
cp /path/to/libseccomp.so.2 /usr/lib64/
```
这样,你就将`libseccomp.so.2`文件复制到了正确的位置,Docker在创建容器任务时就能够正确加载该文件了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc crea](https://blog.csdn.net/qq_43323894/article/details/127549456)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [docker安装完成启动不了(报错:Failed to start Docker Application Container Engine.)](https://download.csdn.net/download/weixin_38558655/14052226)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文