This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM5728:如何禁用 containerd/Docker

Guru**** 2391185 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1499567/am5728-how-to-disable-containerd-docker

器件型号:AM5728

工具/软件:

我尝试对 SDK 9上的 am57xx-EVM 执行与 本文相同的操作

我将它添加到我的图像(不是 local.conf)...

image_install:remove ="Docker"
独立驱动程序:packagegroup-arago-base:remove ="Docker"

我确认它们的移除是在图像环境中(-e)。

当我编译时、/usr/bin/containerd 还在那里。  容器服务在 systemd 中。

它的工作方式似乎与 AM62的另一篇文章中的工作方式不同。

有什么想法吗?  这是否必须在 local.conf 中?

谢谢、

Nathan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Nathan、

    似乎 containerd 守护程序可能没有完全与 Docker 相关、可能还有其他模块依赖于它。 我们的团队建议您按照 Andreas https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1497887/am625-how-to-disable-containerd-and-charon-process/5756023#5756023的建议构建自己的层。 


    Yocto 工程师分配 Re。

    -Josue

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Nathan、

    如果要禁用 containerd 服务、可以使用 bbappend 执行此操作。

    1. 创建 名为 containerd_%.bbappend 的文件
    2. 将以下内容放入文件中:
      SYSTEMD_AUTO_ENABLE:${PN} = "disable"
    3. 确保在您的 bbblayers 中读取该文件。

    此致、
    Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我认为添加的配方不正确。  

    我在任何图层中都没有 containerd_*.bb 文件。  我有一个 containerd-opencontainers_git.bb。

    在我的层次上有这个...

    cat recipes-containers/containerd/containerd-opencontainers_%.bbappend
    SYSTEMD_AUTO_ENABLE:${PN} = "disable"

    ...会阻止在 systemd 中启用 containerd 服务。  这是好的,因为我发现容器吃40%的 ARM CPU 在时间上没有明显的原因。

    原来的问题仍未得到答复。  如何防止容器 d-opencontainers 配方被安装?

    它似乎来自...

    • packagegroup-arago-base -> Docker
    • 食谱-containers/Docker/docker.inc:RDEPENDS:${PN}+="virtual-containerd virtual-runc"
    • preferred_provider_virtual/containerd ?="containerd-opencontainers"

    我试图简单地从层堆栈中删除元虚拟化、但随后分析了关于它的缺陷的抱怨。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Nathan、

    您可以尝试将 Docker 添加到 local.conf 中的 image_install:remove 或 package_exclude 变量中。

    此致、
    Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Jared、

    将条目放在 local.conf 中确实会阻止安装 containerd。

    谢谢、

    Nathan