Open sliekens opened 1 year ago
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.
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 equivalentdockerComposeFile
) with a stable tag such aslatest
to create a development container, the image is not updated unless I do adocker pull
ordocker-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?