V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Rehtt
V2EX  ›  问与答

特权模式 LXC 下运行 docker build 的问题

  •  
  •   Rehtt · 2023-03-21 14:12:36 +08:00 · 642 次点击
    这是一个创建于 373 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在 PVE 中开了特权 LXC 容器,LXC 的配置也加了lxc.apparmor.profile: unconfined,并在里面运行 Docker 。

    运行特权 Docker 容器加--privileged,运行非特权 Docker 容器加--security-opt apparmor=unconfined,这些都能正常运行。 现在想要运行docker build,并且加了--security-opt apparmor=unconfined参数还是报错:

    #8 0.339 runc run failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory
    

    请问有什么解决办法吗

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1168 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:21 · PVG 02:21 · LAX 11:21 · JFK 14:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.