Skip to content

bug: cfssl/cfssl image builds with wrong base arch #1359

@killianmuldoon

Description

@killianmuldoon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions