Home  >  Q&A  >  body text

Docker适合做数据服务器吗?

比如用Docker来部署Redis或者Mysql集群,然后这些数据也保存在docker的实例中。这种做法值得推荐吗?

迷茫迷茫2761 days ago679

reply all(5)I'll reply

  • 黄舟

    黄舟2017-04-21 11:19:52

    Data is placed in volumes for management. Volume currently only supports local directories. Volume allows many containers to access the same data.
    Using docker to manage databases can facilitate multiple database instances running on one host. csphere can also manage data containers very well

    reply
    0
  • 怪我咯

    怪我咯2017-04-21 11:19:52

    I feel that the data is not stored in the docker instance, but in the directory where the host is mounted or using nfs

    reply
    0
  • 怪我咯

    怪我咯2017-04-21 11:19:52

    This mainly depends on your application scenario. In fact, there is nothing suitable or inappropriate.

    reply
    0
  • PHPz

    PHPz2017-04-21 11:19:52

    According to the book, the performance will be better if the data is mapped to the host file system using -v method

    reply
    0
  • PHP中文网

    PHP中文网2017-04-21 11:19:52

    Managing Data in Containers is Docker’s official description of data management in containers. I hope it can help you.

    reply
    0
  • Cancelreply