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

Running in Dev Container returns an error that no manifest can be found #187

Closed
michaelklopf opened this issue Nov 17, 2023 · 8 comments
Closed
Assignees

Comments

@michaelklopf
Copy link

michaelklopf commented Nov 17, 2023

Describe the bug
Running project in dev container returns error.

Error fetching image details: No manifest found for mcr.microsoft.com/devcontainers/universal:2.

To Reproduce
Cloning the repository, opening the folder with VSCode on macOS and letting the DevContainer build returns the error

Expected behavior
Run of DevContainer should be successful

Desktop (please complete the following information):

  • OS: macOS 13.5.2
  • Docker Desktop 4.21.1
  • VSCode 1.84.2

Additional context
I have basic experience with Docker, so this could be a user error, but I'm not sure.

Copy link

👋 Thanks for contributing @michaelklopf! We will review the issue and get back to you soon.

@nitya
Copy link
Member

nitya commented Nov 21, 2023

Hi @michaelklopf - thanks for the report.

I tried to replicate this:

  • OS: macOS 12.7.1 (Monterey)
  • Docker Desktop: 4.25.1
  • VS Code: 1.85.0-insider

I was unable to reproduce the issue and get the same error message on my device.
Looking at the error message itself, that indicates that one of two things is possible:

  • You cannot access the Microsoft Container Registry (mcr) where the image is located
  • You can access it but it does not contain the image for the tag (universal:2)

I just checked the Microsoft Artifact Registry tags here - and you can see that the "2" tag exists annd has the specific image string provided. So I have to assume that can't be the issue.

Which leaves the possibility that for some reason your local device was not able to access the registry at the given time. Were you able to check if you were online at the time? (If you see the issue again, try visiting that link to the Artifact above in browser to verify you can. see it)

Can you check if the issue persists or did you get that only on occasion?

@michaelklopf
Copy link
Author

@nitya I tried with the docker pull command directly and get the error

2: Pulling from devcontainers/universal
no matching manifest for linux/arm64/v8 in the manifest list entries

I guess that being on an ARM Mac it needs to be a linux arm64 compatible version, are you running it on an Intel or ARM Mac?

@potateros
Copy link

potateros commented Nov 21, 2023

I am also facing this same issue while trying to use Dev Container in VSCode. My error message is

[5591 ms] Looking up Docker credential helper for 'mcr.microsoft.com'.
2: Pulling from devcontainers/universal
no matching manifest for linux/arm64/v8 in the manifest list entries
[6498 ms] []
[6498 ms] Error: No such image: mcr.microsoft.com/devcontainers/universal:2

I then tried running docker pull mcr.microsoft.com/devcontainers/universal:2 in terminal, and my error message is

2: Pulling from devcontainers/universal
no matching manifest for linux/arm64/v8 in the manifest list entries

I am able to find it in the Microsoft Artifact Registry. Looking at the error, it seems like there is no image available for arm64 devices. @michaelklopf are you using an Apple Silicon device? That may be the reason. I am using MBP with M1 Pro

As a temporary fix, you can try running this in terminal.

export DOCKER_DEFAULT_PLATFORM=linux/amd64
docker pull mcr.microsoft.com/devcontainers/universal:2

After the image has been pulled, try reopening the repository in Dev Container again. It should work.

@nityadev
Copy link

(This is @nitya)

@michaelklopf - ah it is an ARM issue. You're right - I am still on an Intel Mac so I didn't get that issue.
@potateros - thanks for the suggestion!! @michaelklopf - can you try the suggestion above as a temporary fix and let me know if that worked for you?

In the meantime, some context if useful:
The Dev Container Images By Microsoft on Docker Hub indicates that there are limitations for support of ARM64 images. Specifically, the we would need to use an image with a 'buster' or 'bullseye' tag. Currently the 'universal:2' does not support it - but the Python base image does - so it might be possible to reconfigure the container with that base image and see if that works.

I can try that out (or if you do so let me know how it goes).

@PAN740623
Copy link

报告错误

@michaelklopf
Copy link
Author

@potateros Yeah, I'm on an ARM Mac. Thank you for the hint

@nitya It did work and the dev container is building and running now

@koreyspace
Copy link
Collaborator

Glad to see this is working @michaelklopf , thanks for the help @nitya . Closing this.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants