The right way to move a data-only docker container

2019-03-29 20:58发布

I have a database docker container that is writing its data to another data-only container. The data-only container has a volume where it stores the data of the database. Is there a "docker" way of migrating this data-only container from one machine to another? I read about docker save and docker load but these commands save and load images, not containers. I want to be able to package the docker container along with its volumes and move it to another machine.

1条回答
一夜七次
2楼-- · 2019-03-29 21:27

Checkout the flocker project. Very interesting solution to this problem, using ZFS to snapshot and replicate the storage volume between hosts.

查看更多
登录 后发表回答