docker-runc not installed on system

后端 未结 5 958
小蘑菇
小蘑菇 2021-02-12 12:46

I recently updated my Centos 7 based machine. And since, i fail to start any of my dockers. Does someone have some experience with this issue and if yes how did you fix it ? Tha

5条回答
  •  我寻月下人不归
    2021-02-12 13:20

    I tried Nabil Ghodbane's method, but it didn't work. Thanks to billabongrob's answer, I found a way to fix this problem. You can try this Docker config file:

    $ cat /etc/docker/daemon.json
    {
        "log-level":"warn",
        "hosts": ["unix:///var/run/docker.sock","tcp://0.0.0.0:2375"],
        "runtimes": {
            "docker-runc": {
                "path": "/usr/libexec/docker/docker-runc-current"
            }
        },
        "add-runtime": "docker-runc=/usr/libexec/docker/docker-runc-current",
        "default-runtime": "docker-runc"
    }
    

    or use this config in your command line .

提交回复
热议问题