Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

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 this issue Feb 16, 2019 · 7 comments

Comments

@wuzhihui1123
Copy link

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
Copy link

TimeBye commented Mar 2, 2019

you can try

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

@bobo325
Copy link

bobo325 commented Aug 11, 2019

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
Copy link

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

@xiak
Copy link

xiak commented Jul 30, 2020

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
Copy link

wu0407 commented Nov 19, 2020

update docker or containerd to last version

@ObserverYu
Copy link

same problem,

@wald-tq
Copy link

wald-tq commented Oct 5, 2021

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

Thanks @wuzhihui1123! This solved my problem in WSL!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants