基于联合文件系统的Docker容器迁移方案

    Docker Container Migration Solution to Union Filesystem

    • 摘要: 为了解决Docker容器在线迁移过程中由容器迁移产生冗余Docker镜像的问题,利用联合文件系统容器层文件与镜像层文件通过联合挂载统一显示以及容器内操作过的文件存在于容器层的特性,提出一个Docker容器在线迁移方案.该方案在迁移容器数据时,采用仅迁移容器层数据的方式,有效避免了冗余Docker镜像的生成.基于上述设计方案,在当前最具代表性的2类联合文件系统存储驱动(aufs和overlay2)上进行了验证实验.实验结果表明,在容器迁移过程中,不仅实现了容器数据的迁移,而且并未产生多余Docker镜像.

       

      Abstract: To solve the problem of redundant Docker images caused by container migration during the process of live migration of Docker containers, the characteristics of the union filesystem container layer files and image layer files was used in this paper to be uniformly displayed by federation, and the files manipulated in the container existing the container layer. A Docker container online migration program was proposed. The program migrated container data only by migrating container layer data, which effectively avoided redundant Docker image generation. Based on the above design program, the verification experiment on the two most representative types of union filesystem storage drivers (aufs and overlay2) was completed. Results show that during the container migration, it not only enables the migration of container data, but also does not produce redundant Docker images.

       

    /

    返回文章
    返回