Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[建议] 安装或升级中检测本地是否支持docker 中的seccomp #255

Closed
EmptyZeroRain opened this issue Aug 25, 2023 · 3 comments
Closed

Comments

@EmptyZeroRain
Copy link

背景与遇到的问题

在3.1版本更新时,upgrade.sh并没有检测地是否支持docker 中的seccomp
Error response from daemon: seccomp profiles are not supported on this daemon, you cannot specify a custom seccomp profile

建议的解决方案

参考文档:https://docs.docker.com/engine/security/seccomp/#pass-a-profile-for-a-container
查看内核是否支持docker中的seccomp特性。
grep CONFIG_SECCOMP= /boot/config-$(uname -r)
如果出现如下则支持
CONFIG_SECCOMP=y
提示报错则不支持。

@zclaiqcc
Copy link
Collaborator

这个我们会优化一下,准备去掉这个依赖

@Lorna0 Lorna0 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2023
@Lorna0
Copy link
Collaborator

Lorna0 commented Aug 31, 2023

引入 seccomp 原本是为了兼容低版本 docker,但我们发现社区用户的环境复杂,也不是所有的能通过配置 seccomp 来解决,而且还会带来额外的报错。所以我们决定在 3.2 去掉这个依赖,更新 docker 依赖版本为 >= 20.10.14。如果低版本 docker 遇见不能启动的情况可尝试升级 docker 或者自行配置。

@Lorna0
Copy link
Collaborator

Lorna0 commented Sep 1, 2023

3.2.0 已去掉对 docker 的 seccomp 特性的依赖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants