error: docker-runc not installed on system

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于error: docker-runc not installed on system的主要内容,如果未能解决你的问题,请参考以下文章

docker-runc not installed on system 问题

ERROR: Repository not found. ////Git, but is not registered in the Settings.

Error: could not find function ... in R

Error: Main method not found in class

Error:Comments are not permitted in JSON

Module not found: Error: Can‘t resolve ‘less-loader‘ in