lukaszlach / commando

:whale: Container registry which provides you all the commands you need in a lightweight Alpine image. DevOps and SysOps best friend. https://command-not-found.com
Other
540 stars 25 forks source link

multiarch support #5

Open MaxPeal opened 4 years ago

MaxPeal commented 4 years ago

can you plase add multiarch support / multi_arch_container?

cbrunnkvist commented 1 year ago

For reference, I think this issue relates to this error:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

You typically see this because you are attempting to make use of cmd.cat on an Apple Silicon (M1/M2/M) Mac. The root cause is that the images are only generated for the x86 platform. (`Platform = Architecture OS`)

The current workaround is to explicitly let docker engine know that you want the x86 version of the image, e.g. for 64-bit:

$ docker run -it --rm --platform linux/amd64 cmd.cat/python2.7

does the trick.