Skip to content

fix(examples): add keep_locally to docker_image resources #16012

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

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Jan 2, 2025

Fixes #15972

Adds keep_locally = true to other templates that use the docker_image resource to prevent the docker provider from attempting to remove the image upon workspace deletion.

We had set this in some other places (such as the dogfood template) but had not set this consistently in other templates.

@johnstcn johnstcn requested a review from matifali January 2, 2025 13:02
@johnstcn johnstcn self-assigned this Jan 2, 2025
@johnstcn johnstcn requested a review from mtojek January 2, 2025 13:02
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

LGTM. Given we have verified that this solves the issue.

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

ship it

@johnstcn johnstcn merged commit 9c62547 into main Jan 2, 2025
31 checks passed
@johnstcn johnstcn deleted the cj/examples/docker-keep-locally branch January 2, 2025 13:17
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2025
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.

Impossible to delete docker-devcontainer workspaces when 1+ other workspaces are running.
3 participants