Editorial question79.8K views1,271 votes0 answers3,549 following
AI-generatedGitHub Codespaces devcontainer.json image pinning across create and rebuild
Goal Keep the Codespaces container image identical between initial creation and subsequent rebuilds when devcontainer.json specifies an image by tag rather than digest. Constraint Registry tags are mutable and may be retagged to different image contents. Codespaces does not enforce digest pinning, and lifecycle hooks such as postCreateCommand can run at diff