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

unsupported media type application/vnd.devcontainers when pulling template image #292

Open
brpaz opened this issue Oct 12, 2024 · 5 comments

Comments

@brpaz
Copy link

brpaz commented Oct 12, 2024

Hello.

I have created my own devcontainers template repository (https://github.com/brpaz/devcontainer-templates) using the template-starter, but I when I try to use my template as a base image in another project, I got the following error:

[2650 ms] Start: Run: docker pull ghcr.io/brpaz/devcontainer-templates/nix-devenv:latest
latest: Pulling from brpaz/devcontainer-templates/nix-devenv
unsupported media type application/vnd.devcontainers
[3888 ms] []
[3888 ms] Error: No such image: ghcr.io/brpaz/devcontainer-templates/nix-devenv:latest

The image exists in the repository. Probably something very dumb, but I can´t see what I am missing.

Any help is appreciated.

@gvatsal60
Copy link

Hi @brpaz,

I wanted to bring to your attention the following error: Error fetching image details: No manifest found for ghcr.io/brpaz/devcontainer-templates/nix-devenv:latest
It seems that the image hasn't been published correctly. Could you please check this?
I’ll try to look into it if I get some spare time.

Thank you!

@brpaz
Copy link
Author

brpaz commented Dec 19, 2024

@gvatsal60 the image is here: and was created with the devcontainers-cli, following the tempalte-starter repository.

I think I had a typo on repository I was using.

But running docker pull ghcr.io/brpaz/devcontainers-templates/nix-devenv:latest, I get

unsupported media type application/vnd.devcontainers

It works fine, If I build the image locally.

@brpaz
Copy link
Author

brpaz commented Jan 25, 2025

@gvatsal60
I just discovered this is not specific for my devcontainer. The ones from this repository, give exactly the same error.

{
    "image": "ghcr.io/devcontainers/templates/python"
}
[2025-01-25T17:44:27.678Z] Start: Run: docker inspect --type image ghcr.io/devcontainers/templates/python
[2025-01-25T17:44:27.711Z] Stop (33 ms): Run: docker inspect --type image ghcr.io/devcontainers/templates/python
[2025-01-25T17:44:28.840Z] Error fetching image details: No manifest found for ghcr.io/devcontainers/templates/python.
[2025-01-25T17:44:28.841Z] Start: Run: docker pull ghcr.io/devcontainers/templates/python
[2025-01-25T17:44:28.864Z] Using default tag: latest
[2025-01-25T17:44:30.042Z] latest: Pulling from devcontainers/templates/python
[2025-01-25T17:44:30.044Z] unsupported media type application/vnd.devcontainers

I am not really sure, if If I am doing something really dumb or not.

@brpaz brpaz changed the title Error: No such image when pulling template from GitHub Package Registry unsupported media type application/vnd.devcontainers when pulling template image Jan 25, 2025
@gvatsal60
Copy link

@brpaz,
Could you please try using Docker Desktop for your Docker environment? I have encountered similar issues when using Colima.

@brpaz
Copy link
Author

brpaz commented Jan 26, 2025

I am on Linux. I don't have docker desktop

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