今天发现··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机器就可以了!!