How to deal with persistent storage (e.g. databases) in Docker

前端 未结 14 1370
野的像风
野的像风 2020-11-22 11:54

How do people deal with persistent storage for your Docker containers?

I am currently using this approach: build the image, e.g. for PostgreSQL, and then start the c

14条回答
  •  广开言路
    2020-11-22 12:08

    If you want to move your volumes around you should also look at Flocker.

    From the README:

    Flocker is a data volume manager and multi-host Docker cluster management tool. With it you can control your data using the same tools you use for your stateless applications by harnessing the power of ZFS on Linux.

    This means that you can run your databases, queues and key-value stores in Docker and move them around as easily as the rest of your application.

提交回复
热议问题