Skip to content
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

Backport of docker: set force=true on remove image to handle images referenced by multiple tags into release/1.4.x #15978

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #15962 to be assessed for backporting due to the inclusion of the label backport/1.4.x.

The below text is copied from the body of the original PR.


This PR changes our call of docker client RemoveImage() to RemoveImageExtended with
the Force=true option set. This fixes a bug where an image referenced by more than
one tag could never be garbage collected by Nomad. The Force option only applies to
stopped containers; it does not affect running workloads.

Fixes #15760

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/docker-delete-multi-tag/frankly-sacred-tapir branch from 0e1f046 to 09db4d5 Compare January 31, 2023 13:53
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit b7b5eaf into release/1.4.x Jan 31, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/docker-delete-multi-tag/frankly-sacred-tapir branch January 31, 2023 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants