最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

玩客云刷机armbian后docker启动不起来,提示bpf_prog_query(BPF_CGROUP_DEVICE) failed

业界 admin 5浏览 0评论
/ ___| ( _ )/ |___ \
\___ \ / _ \| | __) |
 ___) | (_) | |/ __/
|____/ \___/|_|_____|

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:~#

搞定。

/ ___| ( _ )/ |___ \
\___ \ / _ \| | __) |
 ___) | (_) | |/ __/
|____/ \___/|_|_____|

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:~#

搞定。

发布评论

评论列表 (0)

  1. 暂无评论