我们如何与另一个Docker容器共享一个Docker容器的PROC文件?

发布于 2025-02-01 10:41:38 字数 155 浏览 4 评论 0原文

我希望使用一个Docker容器,并与其他容器共享容器的PROC文件。有没有办法实现这一目标?还是我们可以利用Linux名称空间共享?

我想将Data-Dog代理作为另一个容器运行,但我不想将主机的PROC文件共享给所有容器,但我只想与Data-Dog代理容器共享容器的PROC文件。

I am looking to use one docker container and share the proc file of the container with other containers. Is there a way to achieve that? Or can we leverage linux namespace sharing for that?

I want to run data-dog agent as another container but I don't want to share the proc file of the host to all the container but I only want to share the containers' proc file with the data-dog agent container.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文