Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Imaged get deleted when the are referenced by digest and not by tag #44

Description

@MoJo2600

In my setup images get deleted although they are still being referenced in a task definition. I dug a little deeper and it seems like images are not recognized as running, when they are directly referencing an image by digest and not by tag. So if one is using the format repositoryurl/image@sha256:digest it does never match and thus the image will be added to the images to delete list.

I created a change that will check if the task definition is referencing an image via digest and will also add those images to the list to keep. But I'm not sure if this is the best solution and maybe my setup with referencing the image via digest might be an anti pattern somehow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions