centos7启动docker容器时提示Error response from daemon: Unknown runtime specified docker-runc


记录centos7启动docker 过程

systemctl start docker 启动docker 程序
docker start xxx 启动docker容器

报错提示“Error response from daemon: Unknown runtime specified docker-runc”

上网找答案看到这个命令

grep -rl 'docker-runc' /var/lib/docker/containers/ | xargs sed -i 's/docker-runc/runc/g'

重新启动docker

systemctl restart docker

提示失败的问题已解决