error: docker-runc not installed on system

执行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

猜你喜欢

转载自blog.51cto.com/michaelkang/2160171