shim error: docker-runc not installed on system

时间:2024-02-24 07:14:02

问题描述:shim error: docker-runc not installed on system

解决办法
方式一:

    cd /usr/libexec/docker/
    sudo ln -s docker-runc-current docker-runc 

方式二:

vi /etc/docker/daemon.json  
 
# 添加内容如下:
{
    "log-level":"warn",
    "runtimes": {
        "docker-runc": {
            "path": "/usr/libexec/docker/docker-runc-current"
        }
    },
    "add-runtime": "docker-runc=/usr/libexec/docker/docker-runc-current",
    "default-runtime": "docker-runc"
}

# 保存退出,执行如下动作:

systemctl daemon-reload
systemctl start docker