Open yj-amano opened 4 years ago
Hi yj, Thank you for bringing this to our attention.
When I take a look at the script I see this line
readonly IMAGES_TO_PRESERVE_LOCALLY="${IMAGES_TO_TRANSFER:-preserved_images.conf}"
This should be changed so that IMAGES_TO_PRESERVE_LOCALLY
references a different environment variable.
A quick fix for you would be to change the line to this
readonly IMAGES_TO_PRESERVE_LOCALLY="${IMAGES_TO_PRESERVE:-preserved_images.conf}"
We will log this and submit a change but also welcome a PR if you are available.
Hi Ryan Thank you for your quick reply.
With your suggestion, I could copy container image only to the private repository. No longer preserved it as expected.
Description
mirror-image.sh is supposed to use the following files: repo-quay.conf --- application:tag list to be mirrored preserved-images.conf --- preserved list to be kept in local repository as well as private repository
So if we does not specify the application:tag in preserved-images.conf, the container image is only copied to private repository.
However I tried to do so, the copied image is also left in local repository.
Describe How to Reproduce
OS:RHEL8.2 podman:1.6.4 (in OS)
To check the image existence I used the following ways: local repository : podman images private repository : curl -u: -sk https:///v2/_catalog (docker.io/library/registry:2)
Suppose I try to mirror fn_slack:1.0.2