合 docker启动报错Cannot set property IOAccounting, or unknown property
现象
1 2 3 | [root@lhrxxt ~]# docker start lhrcentos76 Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-16790241f6a1b24d4f8be2f201cf666a832960a6274d4b10c882066bb9a9e0ca.scope" (properties [{Name:Description Value:"libcontainer container 16790241f6a1b24d4f8be2f201cf666a832960a6274d4b10c882066bb9a9e0ca"} {Name:Slice Value:"system.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [1568]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): Cannot set property IOAccounting, or unknown property.: unknown Error: failed to start containers: lhrcentos76 |
我的报错:Cannot set property IOAccounting, or unknown property
解决
我的报错:Cannot set property IOAccounting, or unknown property ,更新后仍然不能解决问题。
最后解决办法:升级wsl2的版本,升级后该问题解决,升级后的版本:
1 2 3 4 5 6 7 8 | C:\Users\lhr>wsl --version WSL 版本: 1.2.5.0 内核版本: 5.15.90.1 WSLg 版本: 1.0.51 MSRDC 版本: 1.2.3770 Direct3D 版本: 1.608.2-61064218 DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows 版本: 10.0.22621.1555 |
升级方法参考:https://www.dbaup.com/weiruanweiwsl2tigongyuanshengsystemd-zhichi.html