现象:docker升级版本后,重启docker服务出现:
powershell
[root@Docker scripts]# docker start registry
Error response from daemon: Unknown runtime specified docker-runc
Error: failed to start containers: registry
解决办法:
改完之后重启dokcer,容器就可以启动了。
powershell
[root@Docker ~]# grep -rl 'docker-runc' /var/lib/docker/containers/ | xargs sed -i 's/docker-runc/runc/g'
[root@Docker ~]# systemctl restart docker
重启容器即可
powershell
[root@Docker scripts]# docker start xxx