Docker 升级后启动原来的容器报错

2020-05-18  本文已影响0人  jinbulee

docker 升级后启动原来的容器会报如下错误。


image.png
[root@hecs ~]# docker start wiz
Error response from daemon: Unknown runtime specified docker-runc
Error: failed to start containers: wiz

解决方法:

[root@hecs ~]# grep -rl 'docker-runc' /var/lib/docker/containers/ | xargs sed -i 's/docker-runc/runc/g'
[root@hecs ~]# systemctl stop docker 
[root@hecs ~]# systemctl start docker 

不能使用 systemctl restart docker !!!

上一篇 下一篇

猜你喜欢

热点阅读