Docker Data Volume Container - Can I share across swarm

淺唱寂寞╮ 提交于 2019-12-02 19:06:32

Can data volume containers be used/mounted in containers residing on other hosts within a docker swarm?

Docker, by itself, does not provide any facility for either migrating data or sharing data between hosts in a cluster.

How is the performance? is it recommended to structure things this way?

Docker volumes impose very little performance overhead in general, because they're just bind mounts.

Is there a better way to handle sharing of persistent resources across containers and hosts such as NFS?

NFS or any cluster filesystem, such as gluster, can be used to create data volumes that are available to all hosts in a cluster.

Bithin Alangot

There is a technology called as Flocker which will help you to move your containers across the hosts with the attached volume. Flocker is open source. Docker in itself doesn't provide any functionality for Docker container migration. There is a small article on container migration. Hope it will be helpful.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!