记录一次docker异常问题的解决方法

今天发现··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
 ^C

$rm -rf /run/docker/runtime-runc/moby/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
$rm -rf /data/docker/containers/4f11080bc19933b3d4d977231754ea54aed286ae9e9b99bebc04e3984ff07996
  • 解决办法二:
    简单粗暴,重启vm机器就可以了!!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

少陽君

谢谢老板的拿铁

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值