cloudflare / cfssl

CFSSL: Cloudflare's PKI and TLS toolkit

Home Page:https://cfssl.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: cfssl/cfssl image builds with wrong base arch

killianmuldoon opened this issue · comments

The cfssl/cfssl:latest image is currently available for arm64, but the base image appears to be amd64. This causes issues when trying to run multiple cfssl commands with bash.

Steps to reproduce

On an arm64 host:

docker run --entrypoint bash cfssl/cfssl:latest
docker run cfssl/cfssl:latest

The first command failes with exec /bin/bash: exec format error. The second command runs as expected.

On an amd64 host

docker run --platform linux/arm64 --entrypoint bash cfssl/cfssl:latest
docker run --platform linux/arm64 cfssl/cfssl:latest

In this case the fist command runs successfully but the second case produces exec /bin/bash: exec format error - showing that there are tools with different architectures in the pod.

The solution to this is - I believe - to use a base image that matches the architecture of the target platform.

Thank you!