1. 程式人生 > >error: docker-runc not installed on system

error: docker-runc not installed on system

執行 .json 動作 eve docker emc systemctl response res

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