Pushing image with already existing layers to virtual repository causes the layers to be copied to incorrect location.
From functional perspective, still able to pull the new image, but need to fix the layout.
1. pull busybox
2. push it to virtual docker repository and tag it busybox:1
3. tag it again as busybox:2 and push it
Only the newly created layers, in this case the manifestjson will appear in the correct layout, i.e. /docker-repository/busybox/2, existing layers will appear in the following layout, /docker-repository/docker-repository/busybox/2.
Note: Pull command will work as expected.