是否可以在Docker容器之间共享内存?

是否可以在Docker容器之间共享内存?,第1张

是否可以在Docker容器之间共享内存?

此后,

--ipc=host
--ipc=container:id
选项已添加到Docker
create
run
命令中以共享IPC资源。

--ipc=""  : Set the IPC mode for the container,  'container:<name|id>': reuses another container's IPC

namespace
‘host’: use the host’s IPC namespace inside the container


IPC与主机

docker run --ipc=host <image>

IPC与另一个容器

docker run --ipc=container:<id> <image>


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5000520.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-14
下一篇2022-11-14

发表评论

登录后才能评论

评论列表(0条)

    保存