无法在Linux CentOS中运行docker容器,如何修复?
[root@mycentos ~]# docker run alpine
container_linux.go:235: starting container process caused "process_linux.go:258: applying cgroup configuration for process caused \"Cannot set property TasksAccounting, or unknown property.\""
/usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:235: starting container process caused "process_linux.go:258: applying cgroup configuration for process caused \"Cannot set property TasksAccounting, or unknown property.\"".
答案1
干净的 CentOS 安装后,这里也是如此。运行后已修复:
yum -y update
reboot
答案2
更新 systemd 就足够了。 (来源)
yum update systemd