kenchan0130 / docker-simplesamlphp

Dockerized plug and play SAML 2.0 Identity Provider (IdP) for development and testing.

Home Page:https://hub.docker.com/r/kenchan0130/simplesamlphp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error starting container on arm

Bwvolleyball opened this issue · comments

Hello, when I try to run this container on an arm server, all I get is this error:

exec /usr/local/bin/docker-php-entrypoint: exec format error

I'm a bit unsure where this is coming from.

This was from running the develop tag.

@Bwvolleyball

It appears to be working in my environment.
I may need more information about your environment and the settings you have made to solve your problem.

#48 (comment)

Hey @kenchan0130 - I'm attempting to run this on a kubernetes instance with AWS Arm Graviton nodes currently - what information would you like me to try to get?

I was looking at this again, but, the error is not super helpful.

I'm trying to do some detective work, and as far as I can tell it's an issue with starting PHP on arm?

The error seems to be coming from this script: https://github.com/docker-library/php/blob/master/docker-php-entrypoint - which is in the core php docker container. Do you happen to know what the start command to launch this process looks like? I'm not super familiar with PHP, so I'm not sure how to run this process outside of container.

This was another interesting article: https://beebom.com/how-fix-exec-user-process-caused-exec-format-error-linux/
Maybe there's a problem with the actual arm container that was built?

Also, I was looking for the develop branch, or some trace of how the arm container was built, but I couldn't find one. Do you happen to have a reference as to how this container was built, or can you commit those parts to the main branch so that I can see what was being done?

One last piece of evidence:

With the PHP base container, I noticed that the different architectures are not the exact same size:
image

But this container's develop tag has the same size for the 2 architectures, which is curious at least. Feels like maybe there's something strange going on with the multi-arch build?

image