Using Docker Desktop on macOS with M1 (ARM64) processor:
docker run --rm -p 5050:5050 ghcr.io/dcermak/container-layer-sizes:latest
We see the following error logged to stderr at startup:
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Going via the 'Container registry' using 'prom/prometheus:latest' allows me to retrieve the available platforms. I have chosen both arm64 and amd64, and the image is downloaded. As soon as the download and unpack is complete, I get the following error:
Error occurred while pulling the image, got error: writing blob: adding layer with blob "sha256:...": ApplyLayer exit status 1 stdout: Error while loading /var/lib/containers/storage/vfs/dir/...: Permission denied stderr:
I have also tried running the container using the following, with no change in behaviour:
docker run -u root --rm -p 5050:5050 ghcr.io/dcermak/container-layer-sizes:latest
docker run --privileged -u root --rm -p 5050:5050 ghcr.io/dcermak/container-layer-sizes:latest
docker run --cap-add=all --rm -p 5050:5050 ghcr.io/dcermak/container-layer-sizes:latest
docker run --security-opt apparmor=unconfined --rm -p 5050:5050 ghcr.io/dcermak/container-layer-sizes:latest
I have also tried using a local image (first using docker save ... and then bind-mounting the directory it was saved to), with the same result.