Docker Data Volume Container - Can I share across swarm

后端 未结 2 1347
-上瘾入骨i
-上瘾入骨i 2021-02-01 18:58

I know how to create and mount a data volume container to multiple other containers using --volumes-from, but I do have a few questions regarding it\'s usage and limitations:

2条回答
  •  野性不改
    2021-02-01 19:48

    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.

提交回复
热议问题