Rehtt
V2EX  ›  问与答

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

  •  
  •   Rehtt · Mar 21, 2023 · 1786 views
    This topic created in 1160 days ago, the information mentioned may be changed or developed.

    在 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
    

    请问有什么解决办法吗

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   881 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 22:23 · PVG 06:23 · LAX 15:23 · JFK 18:23
    ♥ Do have faith in what you're doing.