rancher/runc-cve

docker: Error response from daemon: OCI runtime create failed: systemd cgroup flag passed, but systemd support for managing cgroups is not available: unknown.

Opened this issue ยท 7 comments

when i update docker-runc , i get the error message below:
docker: Error response from daemon: OCI runtime create failed: systemd cgroup flag passed, but systemd support for managing cgroups is not available: unknown.

my env is:
os: CentOS Linux release 7.3.1611 (Core)
kernel: 4.13.9-1.el7.elrepo.x86_64
docker version: Docker version 18.03.1-ce, build 9ee9f40
runc patch : runc-v18.03.1-amd64

thanks for any help:)

you can try

vi /etc/docker/daemon.json
#delete   "exec-opts": ["native.cgroupdriver=systemd"],

you can try

vi /etc/docker/daemon.json
#delete   "exec-opts": ["native.cgroupdriver=systemd"],

thanks,this worked for me,and don't forget to execute the "restart docker" operation:

sudo systemctl deamon-reload
sudo systemctl restart docker

but,why ?docker is running ,but can't run a container. cause by os? kernel? file-system?

xiak commented

you can try

vi /etc/docker/daemon.json
#delete   "exec-opts": ["native.cgroupdriver=systemd"],

If removed this, the docker will go back to cgroupfs style. I think this is just a work around

update docker or containerd to last version

same problem,

vi /etc/docker/daemon.json
#delete   "exec-opts": ["native.cgroupdriver=systemd"],

Thanks @wuzhihui1123! This solved my problem in WSL!