Skip to content

GitHub devcontainer: image ghcr.io/devcontainers/templates/python:5.0.0 not found #381

@rugk

Description

@rugk

I get this when I try to create a GitHub Codespace:


=================================================================================
2025-12-09 16:43:06.162Z: Configuration starting...
2025-12-09 16:43:06.174Z: Cloning...

=================================================================================
2025-12-09 16:43:06.210Z: Creating container...
2025-12-09 16:43:06.210Z: Cleaning up docker images...
2025-12-09 16:43:06.703Z: $ devcontainer up --id-label Type=codespaces --workspace-folder /var/lib/docker/codespacemount/workspace/neotaste_scraper --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --log-level trace --log-format json --update-remote-user-uid-default never --mount-workspace-git-root false --omit-config-remote-env-from-metadata --skip-non-blocking-commands --skip-post-create --remove-existing-container --config "/var/lib/docker/codespacemount/workspace/neotaste_scraper/.devcontainer/devcontainer.json" --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --container-session-data-folder /workspaces/.codespaces/.persistedshare/devcontainers-cli/cache --secrets-file /root/.codespaces/shared/user-secrets-envs.json
2025-12-09 16:43:06.831Z: @devcontainers/cli 0.80.0. Node.js v18.20.6. linux 6.8.0-1030-azure x64.
2025-12-09 16:43:08.386Z: {"outcome":"error","message":"Command failed: docker inspect --type image ghcr.io/devcontainers/templates/python:5.0.0","description":"An error occurred setting up the container."}
2025-12-09 16:43:08.386Z: Error: Command failed: docker inspect --type image ghcr.io/devcontainers/templates/python:5.0.0
2025-12-09 16:43:08.386Z:     at w6 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:1253)
2025-12-09 16:43:08.387Z:     at ax (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:997)
2025-12-09 16:43:08.387Z:     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-09 16:43:08.388Z:     at async Y6 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:484:3842)
2025-12-09 16:43:08.388Z:     at async BC (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:484:4957)
2025-12-09 16:43:08.389Z:     at async p7 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:665:202)
2025-12-09 16:43:08.389Z:     at async d7 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:664:14804)
2025-12-09 16:43:08.390Z:     at async /.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:484:1188
2025-12-09 16:43:08.394Z: devcontainer process exited with exit code 1

====================================== ERROR ====================================
2025-12-09 16:43:08.396Z: Failed to create container.
=================================================================================
2025-12-09 16:43:08.396Z: Error: Command failed: docker inspect --type image ghcr.io/devcontainers/templates/python:5.0.0
2025-12-09 16:43:08.397Z: Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)

====================================== ERROR ====================================
2025-12-09 16:43:08.402Z: Container creation failed.
=================================================================================
2025-12-09 16:43:08.411Z: 

===================================== WARNING ===================================
2025-12-09 16:43:08.412Z: Creating recovery container.
=================================================================================

=================================================================================
2025-12-09 16:43:08.540Z: Creating container...
2025-12-09 16:43:08.585Z: $ devcontainer up --id-label Type=codespaces --workspace-folder /var/lib/docker/codespacemount/workspace/neotaste_scraper --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --log-level trace --log-format json --update-remote-user-uid-default never --mount-workspace-git-root false --omit-config-remote-env-from-metadata --skip-non-blocking-commands --skip-post-create --config "/var/lib/docker/codespacemount/workspace/neotaste_scraper/.devcontainer/devcontainer.json" --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --container-session-data-folder /workspaces/.codespaces/.persistedshare/devcontainers-cli/cache --secrets-file /root/.codespaces/shared/user-secrets-envs.json
2025-12-09 16:43:08.711Z: @devcontainers/cli 0.80.0. Node.js v18.20.6. linux 6.8.0-1030-azure x64.
2025-12-09 16:43:09.186Z: $alpine -c echo Container started
2025-12-09 16:43:09.205Z: Unable to find image 'mcr.microsoft.com/devcontainers/base:alpine' locally
2025-12-09 16:43:09.353Z: alpine: 2025-12-09 16:43:09.353Z: Pulling from devcontainers/base
2025-12-09 16:43:09.406Z: 
�[1A�[2K
2d35ebdb57d9: Pulling fs layer 

STR

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
	"name": "Python 3",
	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
	"image": "ghcr.io/devcontainers/templates/python:5.0.0",
	"features": {
		"ghcr.io/paul-gilber/devcontainer-features/jinja2-cli-homebrew:1": {
			"version": "latest"
		},
		"ghcr.io/devcontainers-extra/features/flake8:2": {
			"version": "latest",
			"plugins": "flake8-black flake8-isort flake8-print flake8-bandit flake8-pylint flake8-builtins flake8-spellcheck flake8-pytest-style flake8-django flake8-fastapi"
		},
		"ghcr.io/itsalljustdata/devcontainers-custom-features/python-virtualenv:1": {}
	},

For full file see rugk/neotaste_scraper#20 aka https://github.com/rugk/neotaste_scraper/blob/5c0e3eb2f63105458d3110772e8a32b27f8546a2/.devcontainer/devcontainer.json

Full creation log: https://gist.github.com/rugk/f2dd45e36232e4341ba1861b0988a958

Ideas

That s very strange, because https://github.com/devcontainers/templates/pkgs/container/templates%2Fpython lists the image as existing with that tag?

It's reproducible (at least twice rebuilds I tried now).

Cross-post: devcontainers/images#1691 ( am not sure where this fits better)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions