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

Evergreen containers #99

Open
sliekens opened this issue Sep 15, 2022 · 1 comment
Open

Evergreen containers #99

sliekens opened this issue Sep 15, 2022 · 1 comment

Comments

@sliekens
Copy link

sliekens commented Sep 15, 2022

Hi,

When using build.dockerfile to create a development container and the Dockerfile is changed, a new container is built the next time it is opened. This makes sense to me.

When using image (or an equivalent dockerComposeFile) with a stable tag such as latest to create a development container, the image is not updated unless I do a docker pull or docker-compose pull. This surprises me.

Wouldn't it make sense to align these two so that you are always using a container based on the latest available image?

image

@bamurtaugh
Copy link
Member

Thanks for opening this @sliekens, and I definitely understand what you mention.

In general, the Dev Containers extension and Codespaces has preferred to use cached content to aid in build performance. But cache management is ultimately left to the user or implementor of the spec, so I think you could certainly choose to always grab the latest image.

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

No branches or pull requests

2 participants