docker升级之后导致容器启动失败no such runtime 'docker-runc'

在这里插入图片描述

解决问题办法:
[root@ghw ~]# grep -rl ‘docker-runc’ /var/lib/docker/containers/
/var/lib/docker/containers/d14384b4c381b7135eaf2d60c4b5237ca97dc2d14903e918b41cd48cc54dc602/config.v2.json
/var/lib/docker/containers/d14384b4c381b7135eaf2d60c4b5237ca97dc2d14903e918b41cd48cc54dc602/hostconfig.json
[root@ghw ~]# grep -rl ‘docker-runc’ /var/lib/docker/containers/ | xargs sed -i ‘s/docker-runc/runc/g’
[root@ghw ~]# systemctl restart docker
[root@ghw ~]# docker restart python
python

你可能感兴趣的:(运维)