Skip to content

linux/arm64 seems to be built against linux/amd64 instead #183

@Myzel394

Description

@Myzel394

I was trying to run this on one of my linux/arm64 machine (a Raspberry PI 4B), but was unable to, I'd always receive this error:

linux/arm64 machine:

# docker run --rm -it -p 3000:3000 dannyben/madness
exec /usr/bin/madness: exec format error

I tried running it with the platform set explicitly:

linux/arm64 machine:

# docker run --platform linux/arm64 --rm -it -p 3000:3000 dannyben/madness
exec /usr/bin/madness: exec format error

The image runs fine on my linux/amd64 machine, strangely, when I run using platform linux/arm64 it works on my linux/amd64 machine too!

linux/amd64 machine:

# docker run --rm -it --platform linux/amd64 -p 3000:3000 dannyben/madness server
▌ starting server
▌ env    : production
▌ listen : 0.0.0.0:3000
▌ path   : /docs

I think the linux/arm64 machine is not correctly being built / or the linux/amd64 image is being pushed as the linux/arm64 image as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions