autogen icon indicating copy to clipboard operation
autogen copied to clipboard

docker image doesn't exist

Open minki-j opened this issue 1 year ago • 3 comments

What happened?

 => ERROR [internal] load metadata for mcr.microsoft.com/devcontainers/universal:2            0.2s
------
 > [internal] load metadata for mcr.microsoft.com/devcontainers/universal:2:
------
.devcontainer/Dockerfile:2
--------------------
   1 |     # Note: You can use any Debian/Ubuntu based image you want.
   2 | >>> FROM mcr.microsoft.com/devcontainers/universal:2
   3 |     
   4 |     # [Optional] Uncomment this section to install additional OS packages.
--------------------
ERROR: failed to solve: mcr.microsoft.com/devcontainers/universal:2: failed to resolve source metadata for mcr.microsoft.com/devcontainers/universal:2: no match for platform in manifest: not found

What did you expect to happen?

.

How can we reproduce it (as minimally and precisely as possible)?

run this command

docker build -f .devcontainer/Dockerfile -t autogen_base_img https://github.com/microsoft/autogen.git#main

AutoGen version

0.3.1

Which package was this bug in

Core

Model used

No response

Python version

No response

Operating system

No response

Any additional info you think would be helpful for fixing this bug

No response

minki-j avatar Oct 26 '24 14:10 minki-j

@rysweet or @kostapetan do you know whats up here?

jackgerrits avatar Nov 15 '24 19:11 jackgerrits

@minki-j are you trying to use Codespaces or open the repo in a devcontainer?

kostapetan avatar Nov 15 '24 20:11 kostapetan

I can repro locally but no idea what to do next - @kostapetan I just ran the same command as above in the terminal from a fresh checkout

rysweet avatar Nov 16 '24 00:11 rysweet

The error @minki-j described suggests that docker didn't find a suitable image for the platform, which I will speculate is some flavor of macOS. I did run docker pull mcr.microsoft.com/devcontainers/universal:2 on macOS, Windows and Linux, works on Windows (with linux containers) and Linux, but fails on macOS. I don't think this is an issue however, as the devcontainer/Dockerfile is used to build a devcontainer, locally or in Codespaces and not to actually build any part of the autogen framework.

kostapetan avatar Nov 16 '24 12:11 kostapetan

➜ ~ docker pull mcr.microsoft.com/devcontainers/universal:2 2: Pulling from devcontainers/universal

What's next: View a summary of image vulnerabilities and recommendations → docker scout quickview mcr.microsoft.com/devcontainers/universal:2 no matching manifest for linux/arm64/v8 in the manifest list entries

@kostapetan any solution for ARM

MathavanSG avatar Dec 15 '24 09:12 MathavanSG