rancher / runc-cve

CVE patches for legacy runc packaged with Docker
70 stars 15 forks source link

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

Open wuzhihui1123 opened 5 years ago

wuzhihui1123 commented 5 years ago

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:)

TimeBye commented 5 years ago

you can try

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

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

luciferhs commented 4 years ago

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

xiak commented 3 years ago

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

wu0407 commented 3 years ago

update docker or containerd to last version

ObserverYu commented 2 years ago

same problem,

wald-tq commented 2 years ago
vi /etc/docker/daemon.json
#delete   "exec-opts": ["native.cgroupdriver=systemd"],

Thanks @wuzhihui1123! This solved my problem in WSL!