Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containers using images built on Apple Silicon FAIL to boot #13

Open
ziopio opened this issue Feb 21, 2024 · 2 comments
Open

Containers using images built on Apple Silicon FAIL to boot #13

ziopio opened this issue Feb 21, 2024 · 2 comments
Assignees

Comments

@ziopio
Copy link
Contributor

ziopio commented Feb 21, 2024

Bug encountered by Peer while testing on an M3 Mac.

The image was built on a braidnode project in the usual way

    rebar3 docker build
    docker push local/my_app grisp/my_app

Strange crash on braidnet:

2024-02-20T19:47:42.124 app[e784e666f0d778] nrt [info] 2024-02-20T19:47:42.123996+00:00 [debug] Container <<"d707b03f-9727-4ca9-b4dd-5426da907312">>: WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested

2024-02-20T19:47:42.207 app[e784e666f0d778] nrt [info] 2024-02-20T19:47:42.206705+00:00 [debug] Container <<"d707b03f-9727-4ca9-b4dd-5426da907312">>: exec /opt/foo/bin/foo: exec format error

2024-02-20T19:47:42.242 app[e784e666f0d778] nrt [info] 2024-02-20T19:47:42.241390+00:00 [debug] Container <<"d707b03f-9727-4ca9-b4dd-5426da907312">>, terminated with code 1 for reason: unknown

2024-02-20T19:47:42.242 app[e784e666f0d778] nrt [info] 2024-02-20T19:47:42.241540+00:00 [error] Generic server <0.5359.0> terminating. Reason: unknown. Last message: {#Port<0.2302>,{exit_status,1}}. State: {state,<<"d707b03f-9727-4ca9-b4dd-5426da907312">>,#Port<0.2302>}. 
@ziopio ziopio self-assigned this Feb 21, 2024
@matlaj
Copy link
Member

matlaj commented Feb 21, 2024

This might be because the Braidnode image was built to be ran on the same platform that was performing the build (Arm-based Macbook), but we later try to run it on a different platform (Amd64 Firecracker VM).
Does the --platform flag for docker build help?

@ziopio
Copy link
Contributor Author

ziopio commented Feb 21, 2024

I'll test this once I get my hands on my new M3 MacBook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants