Centos

無法在 linux CentOS 中執行 docker 容器,如何解決?

  • December 9, 2021

無法在 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.\"".

安裝乾淨的 CentOS 後也一樣。執行後修復:

yum -y update
reboot

更新 systemd 就足夠了。(來源

yum update systemd

引用自:https://unix.stackexchange.com/questions/533867