docker 使用中遇到的问题记录: cgroups: cannot find cgroup mount destination: unknown.

语言: CN / TW / HK

在启动container时报错

Error response from daemon: OCI runtime create failed: container with id exists: 67e15e63de517c777b548f774b09d82428eb477cccb9da135f00944bb22b9d9a: unknown

看其他帖子按要求删除对应container文件后,接下来又报以下错误

cgroups: cannot find cgroup mount destination: unknown.

最后解决:


sudo mkdir /sys/fs/cgroup/systemd

sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd/