Docker upgrade restart container error Unknown runtime specified docker-run

The Docker version is 1.13.1. After upgrading its version to 18.06.1, I encountered this error when starting the container created by the old version:

[root@nginx discourse]# docker start f5eb78732bcc
Error response from daemon: Unknown runtime specified docker-runc
Error: failed to start containers: f5eb78732bcc


After consulting the data, the solution process was learned because "this situation occurs when you upgrade docker from an incompatible version and cannot start the docker container after the upgrade." The solution is as follows:

[root@nginx discourse]# grep -rl 'docker-runc' /var/lib/docker/containers/ | xargs sed -i 's/docker-runc/runc/g'
[root@wxb-h5-weixin discourse]# systemctl restart docker

Then restart the container separately

docker start f5eb78732bcc

Guess you like

Origin blog.51cto.com/13767724/2486847