/ ___| ( _ )/ |___ \
\___ \ / _ \| | __) |
___) | (_) | |/ __/
|____/ \___/|_|_____|
Welcome to Armbian 20.12 Bullseye with Linux 5.10.61-aml-s812
Linux
aml-s812 5.10.61-aml-s812 #20.12 SMP Thu Sep 2 20:11:09 CST 2021 armv7l GNU/Linux
玩客云刷机armbian后docker启动不起来,提示 error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown
root@aml-s812:/tmp# docker start 7c
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown
Error: failed to start containers: 7c
解决办法
经查询启用的是cgroup v2版本
直接关掉就好了
修改/boot/uEnv.txt
在启动参数中添加systemd.unified_cgroup_hierarchy=0
重启
root@aml-s812:~# stat -fc %T /sys/fs/cgroup
tmpfs
root@aml-s812:~#
搞定。