docker-runc not installed on system
问题
Docker build时Dockerfile有RUN命令执行报错shim error: docker-runc not installed on system
,如下:
解决方法
修改/etc/docker/daemon.json,添加正面内容
{"runtimes": {"docker-runc": {"path": "/usr/libexec/docker/docker-runc-current"}},"add-runtime": "docker-runc=/usr/libexec/docker/docker-runc-current","default-runtime": "docker-runc"
}
保存退出,然后重启Docker即可
systemctl daemon-reload
systemctl start docker