Docker适合做数据服务器吗?
迷茫
迷茫 2017-04-21 11:17:52
0
5
724

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

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(5)
黄舟

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

刘奇

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

刘奇

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

PHPzhong

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

洪涛

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template