ort icon indicating copy to clipboard operation
ort copied to clipboard

Docker image is not compatible with `linux/arm64/v8` platform

Open yegor256 opened this issue 11 months ago • 6 comments

I'm trying to run Docker container, on MacBook M2:

$ docker run --rm ghcr.io/oss-review-toolkit/ort --help
Unable to find image 'ghcr.io/oss-review-toolkit/ort:latest' locally
docker: Error response from daemon: no matching manifest for linux/arm64/v8 in the manifest list entries: no match for platform in manifest: not found.
See 'docker run --help'.

Probably, the docker image must be built for all platforms.

yegor256 avatar Jan 15 '25 06:01 yegor256

@MarcelBochtler what's the latest status here, I believe you got it running?

Also @hendrikebbers recently told me that he got it working, but apparently we miss to publish ARM Docker images. Can you please remind me?

sschuberth avatar Jan 15 '25 07:01 sschuberth

just ran into the same. I had no problems building it on MacOs (using OrbStack)

StephenKing avatar Jan 16 '25 10:01 StephenKing

@yegor256 you can force the compatibility layer:

❯ DOCKER_DEFAULT_PLATFORM=linux/amd64; docker run --rm ghcr.io/oss-review-toolkit/ort --help
Usage: ort [<options>] <command> [<args>]...

MarcelBochtler avatar Jan 29 '25 20:01 MarcelBochtler

Last comment doesn't work for me (( Macbook M3, macos Version 15.6, Docker v.4.41.1

% DOCKER_DEFAULT_PLATFORM=linux/amd64; docker run --rm ghcr.io/oss-review-toolkit/ort --help
Unable to find image 'ghcr.io/oss-review-toolkit/ort:latest' locally
docker: Error response from daemon: no matching manifest for linux/arm64/v8 in the manifest list entries: no match for platform in manifest: not found
Run 'docker run --help' for more information

okay, I was able to run it with this command )

 %  docker run --rm --platform linux/amd64  ghcr.io/oss-review-toolkit/ort --help
Unable to find image 'ghcr.io/oss-review-toolkit/ort:latest' locally
latest: Pulling from oss-review-toolkit/ort
5c0ea4a7a695: Download complete
...

but it seems that running this image way may lead to at least poor performance, which is important, besause scanning time is quite long

Image

ddimasik avatar Sep 21 '25 21:09 ddimasik

docker run --platform linux/amd64

heliocastro avatar Sep 22 '25 05:09 heliocastro

docker run --platform linux/amd64

yes, it works, but "Image may have poor performance or fail"

ddimasik avatar Sep 22 '25 12:09 ddimasik