Need to rsync/copy docker images from one nexus instance to another one

Hi everyone,

I’m working in a restricted environment (private network) where the only way to import data is by copying files and directories from a public network into a shared directory that is accessible within the private network.

I’m looking for a solution to synchronize two instances of Nexus using this shared folder to sync the Docker registries. Note that there would be a lot of images that have been transferred before and I cannot export all of them during each attempt. So I prefer to sync some or maybe latest images.

Any ideas or solutions would be greatly appreciated!

You might be able to make use of docker image save | Docker Docs

I imagine this might ultimately be larger than the overall content as each tarball contains all the layers in the image, so shared layers will be duplicated in each tarball using them.

1 Like