在centos7.3上yum安装了docker V1.13。1

但是在运行:docker run hello-world的时候报错:

# docker run docker.io/hello-world
container_linux.go:247: 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:247: starting container process caused "process_linux.go:258: applying cgroup configuration for process caused \"Cannot set property TasksAccounting, or unknown property.\"".

 解决:主要原因还是centos系统版本兼容性问题,如果将系统做更新升级,即可解决。

yum update

  更新前:

更新后:

 

 此时重启docker,运行hello-world:

 

版权声明:本文为wang--lei原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/wang--lei/p/10626308.html