-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExcludeDockerImages masks end up in missing layers #121
Comments
any update on this? |
Likely you need to track that down in your environment, especially if it happens time to time. |
I have the exact same issue, and I could not get around it yet. |
I believe Workaround (if you are okay with excluding all tags)To avoid this issue, you can exclude all tags instead of a specific one: - rule: ExcludeDockerImages
masks:
- - image/path/with:tag
+ - image/path/with:* BackgroundI've tried to recreate this issue with a very simple multi-platform Docker image. Steps
FROM alpine
RUN echo "Hello" >> /hello
docker buildx build --platform linux/amd64,linux/arm64 --tag my-artifactory-domain/docker/hello:latest --output=type=image,push=true --push .
- rule: ExcludeDockerImages
masks:
- hello:latest
- rule: ExcludeDockerImages
masks:
- hello:*
|
Thanks for building a reproduceable example, @christianwaldmann. I'd just like to mention your workaround is not a real workaround in case users indeed need to filter by some docker tags, which what I need and seems to be what the issue author needs too. |
You're right, this workaround this won't work for everyone. But I still think it's helpful for others to know how to avoid this issue if they are fine with excluding all tags. The preferred solution would be a proper fix in artifactory-cleanup of course. |
this is the used config:
I expected the image
image/path/with:tag
to be excluded from deletion, with all its layers. Is that an wrong assumption with this config?list.manifest.json
of this image (note the digest877fe4031a674aebb3d006692366fb73badfc36e0d1756964b9d1a7db5b8b553
):the output of the deletion shows the
nmatch
entry for the image, but also the deletion of its layer:After that, the image can't be pulled any more, as the layer is missing in Artifactory. This doesn't happen all the time, only for some images or single layers. How can I avoid this?
The text was updated successfully, but these errors were encountered: