Synchronization between docker Private Stores

  docker, question

Assuming that there are two private warehouses A and B, A changes frequently and B needs to synchronize with A, what we can think of at present is
1). direct rsync synchronizes the folder where warehouse a is located to b, then docker pull B image, and directly reports HTTP code: 404
2).docker pull A mirror image, and then push to B-feel this method is too soil
Is there a smarter way?

1). direct rsync synchronizes the folder where warehouse a is located to b, then docker pull B image, and directly reports HTTP code: 404
Report 404 should be different from A in configuration B. It should be ok to change it. Is there a better way?