执行docker run报错:
    /usr/bin/docker-current: Error response from daemon: shim error: docker-runc not installed on system.
解决办法1:
    cd /usr/libexec/docker/
    sudo ln -s docker-runc-current docker-runc 
解决办法2:
    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
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐