Skip to content

feat(dogfood/coder): add docker volume for... docker #18455

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

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Jun 19, 2025

This change is in preparation for enabling devcontainers as well as
allowing Docker image cache to be re-used across workspace restarts.

For now, any running container will result in the retention of related
resources (image, volumes, etc).

Updates coder/internal#463

This change is in preparation for enabling devcontainers as well as
allowing Docker image cache to be re-used across workspace restarts.

For now, any running container will result in the retention of related
resources (image, volumes, etc).
@mafredri mafredri self-assigned this Jun 19, 2025
Copy link
Contributor

@DanielleMaywood DanielleMaywood left a comment

Choose a reason for hiding this comment

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

Looks good to me! Just want to make sure though, do we have a plan for cleanup if these volumes start to get too large?

@mafredri
Copy link
Member Author

Looks good to me! Just want to make sure though, do we have a plan for cleanup if these volumes start to get too large?

The current plan relies on the user not starting a container, and shutting down their workspace which will always clear everything.

Likewise, if updated images are pulled, the old parts of that image will be pruned away on shutdown.

@mafredri mafredri merged commit 68f21fa into main Jun 19, 2025
36 checks passed
@mafredri mafredri deleted the mafredri/feat-dogfood-coder-use-docker-volume-for-docker branch June 19, 2025 13:10
@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2025
@johnstcn
Copy link
Member

If this becomes a problem, we can simply force deletion of all containers again.

@mafredri
Copy link
Member Author

If this becomes a problem, we can simply force deletion of all containers again.

SGTM 👍🏻

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.

3 participants