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

docker: image_delay default missing without gc stanza #9101

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

tgross
Copy link
Member

@tgross tgross commented Oct 15, 2020

Fixes #9045

In the Docker driver plugin config for garbage collection, the image_delay
field was missing from the default we set if the entire gc stanza is
missing. This results in a default of 0s and immediate GC of Docker images.

In the Docker driver plugin config for garbage collection, the `image_delay`
field was missing from the default we set if the entire `gc` stanza is
missing. This results in a default of 0s and immediate GC of Docker images.
Copy link
Contributor

@notnoop notnoop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 Thanks for catching this. A test would be nice!

@tgross
Copy link
Member Author

tgross commented Oct 15, 2020

Added a test in 0148262

@tgross tgross merged commit a9979db into master Oct 15, 2020
@tgross tgross deleted the b-docker-gc-image-delay branch October 15, 2020 16:36
@tgross tgross added this to the 1.0 milestone Oct 15, 2020
fredrikhgrelland pushed a commit to fredrikhgrelland/nomad that referenced this pull request Oct 22, 2020
In the Docker driver plugin config for garbage collection, the `image_delay`
field was missing from the default we set if the entire `gc` stanza is
missing. This results in a default of 0s and immediate GC of Docker images.

Expanded docker gc config test fields.
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker images immediately cleaned up
3 participants