最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

运维笔记admin2浏览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:~#

搞定。

发布评论

评论列表(0)

  1. 暂无评论