Docker Community Forums

Share and learn in the Docker community.

Issues with sudo systemctl status docker

Hello all,

I am running into some issues when running sudo systemctl status docker. I am getting the following errors:

level=warning msg="Your kernel does not support cgroup rt runtime"
level=warning msg="Your kernel does not support cgroup blkio weight"
level=warning msg="Your kernel does not support cgroup blkio weight_device"

Any help would be greatful, I am running docker in Ubuntu 18.04.5 LTS. Thanks in advance!

It seems that in newer versions of docker and Ubuntu the unit file for docker is simply masked (pointing to /dev/null).
You can verify it by running the following commands in the terminal:

sudo file /lib/systemd/system/docker.service
sudo file /lib/systemd/system/docker.socket
You should see that the unit file symlinks to /dev/null.
In this case, all you have to do is follow S34N’s suggestion, and run:

sudo systemctl unmask docker.service
sudo systemctl unmask docker.socket
sudo systemctl start docker.service
sudo systemctl status docker
I’ll also keep the original post, that answers the error log stating that the storage driver should be replaced:

Original Post

I had the same problem, and I tried fixing it with Salva Cort’s suggestion, but printing /etc/default/docker says:


So here’s a permanent fix that works for systemd (Ubuntu 15.04 and higher):

create a new file /etc/systemd/system/docker.service.d/overlay.conf with the following content:

ExecStart=/usr/bin/docker daemon -H fd:// -s overlay
flush changes by executing:

sudo systemctl daemon-reload
verify that the configuration has been loaded:

systemctl show --property=ExecStart docker
restart docker:

sudo systemctl restart docker