cloudflare / cfssl

CFSSL: Cloudflare's PKI and TLS toolkit

Home Page:https://cfssl.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DockerHub SHAs appear not to match architecture

ab77 opened this issue · comments

(e.g. alpine linux - control)

$ docker run --rm -it --platform linux/amd64 --entrypoint /bin/sh alpine -c 'uname -m'
x86_64

$ docker run --rm -it --platform linux/arm64 --entrypoint /bin/sh alpine -c 'uname -m'
aarch64

(cfssl/cfssl:v1.6.4)

$ docker run --rm -it --platform linux/amd64 --entrypoint /bin/sh cfssl/cfssl:v1.6.4 -c 'uname -m'
x86_64

$ docker run --rm -it --platform linux/arm64 --entrypoint /bin/sh cfssl/cfssl:v1.6.4 -c 'uname -m'
x86_64

$ docker run --rm -it --platform linux/amd64 --entrypoint /bin/sh cfssl/cfssl@sha256:916ea9de3d8645e42a19b1e961a44e1c792f00d7a744a1fee59127130b76d1b5 -c 'uname -m'
x86_64

$ docker run --rm -it --platform linux/arm64 --entrypoint /bin/sh cfssl/cfssl@sha256:bd5e1a81e8e7b3f7f19a2176bdde5aa06058ca227ead30a00161111b035b9e31 -c 'uname -m'
x86_64

ah thanks, the example in https://github.com/docker/build-push-action/blob/master/test/multi.Dockerfile seems to be not correct for a github actions builder, based on docker/build-push-action#668 (comment). Removing --platform that seems to fix it, i'll make a PR.

❯ docker run --rm -it --platform linux/arm64 --entrypoint /bin/sh cfssl/cfssl@sha256:63a64e17ad87b177a4e3aef9e284edb8be94ea057c7de1c5890eec9d041bd754 -c 'uname -m'
aarch64

folks, are you planning to cut a new release semver, which includes this change?