Home  >  Q&A  >  body text

docker私有仓库间同步问题

假设有两个私有仓库A与B,A经常改动,B要与A同步,目前能想到的是
1).直接rsync同步A仓库所在的文件夹到B,然后docker pull B中image,直接报HTTP code: 404
2).docker pull A中的镜像,然后push到B中 ---感觉这种方法太土了
有智能点的方法么?

阿神阿神2761 days ago740

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-04-21 10:57:57

    1). Directly rsync the folder where A warehouse is located to B, then docker pull the image in B, and directly report HTTP code: 404
    The 404 reported should be that the configuration of B is different from that of A. It should be OK to change it. Is there a better way?

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-21 10:57:57

    Registry mirror does this. But v1 does not support it. v2 will support mirror for private registry

    reply
    0
  • Cancelreply