编程代码

Docker异常 OCI runtime 创建失败

gyue2345·2021-08-11·150 次阅读··

   评分 0 次,平均分 0.0    抢沙发   隐藏边栏   黑色模式
[收起] 文章目录

docker异常了,OCI runtime 创建失败,docker start 容器启动不了。报如下错误:

Error response from daemon: OCI runtime create failed: container with id exists: 4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996: unknown
Error: failed to start containers: jenkins-slave05

解决办法一:

这个是我的容器id 4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996

# 找到这些文件
$ find / -name "4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996"
/run/docker/runtime-runc/moby/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/devices/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/blkio/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/freezer/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/memory/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/pids/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/net_cls,net_prio/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/hugetlb/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/perf_event/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/cpuset/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/cpu,cpuacct/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
/sys/fs/cgroup/systemd/docker/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
# 删除它们
$rm -rf /run/docker/runtime-runc/moby/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
$rm -rf /data/docker/containers/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996

解决办法二

简单粗暴,重启vm机器就可以了!

其他docker问题

docker 运行 ubuntu 22.04 出现 NO_PUBKEY 871920D1991BC93C

[收起] 文章目录 问题 原因 解决 I added the key to the Ubuntu keyserver (for some reason, they didn't have the ke...

Docker安装Portainer

docker volume create portainer_datadocker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restar...

赞赏

历史上的文章

  

除特别注明外,本站所有文章均为LJY IT BLOG原创,转载请注明出处来自https://www.ljy2345.com/2021/08/docker-exception-oci-runtime-create-failed/

博 主作者: 关注:6    粉丝:1最后编辑于:2022年9月6日
LJY IT BLOG的站长。

扫一扫打赏

支付宝扫一扫打赏

微信扫一扫打赏

view comments - NOTHING
🌙
😃

切换注册
忘记密码 ?

×

您也可以使用第三方帐号快捷登录

切换登录

×
扫一扫二维码分享
下载海报
  切换主题 | SCHEME TOOL