-
Notifications
You must be signed in to change notification settings - Fork 208
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
standard_init_linux.go:207: exec user process caused "exec format error" #62
Comments
Hi Yes its the issue with the ARM based architecture.
Update: This might be it. As far as I understand [1, 2], there isn't any straightforward way of building an arm based image on (a x86 based) docker hub. |
Thank you for the Dockerfile, however I am getting some issues when building it:
Unfortunately, I cannot view the contents of |
The whole log output looks like this: https://pastebin.com/qStxB31j |
Hi, That does not look good :/ If you want to stay with docker, you can try using a pre compiled / release version (as it seems the docker build stops at compiling from source) The docker file would look something like this, but I haven't tested it:
If it fails with the |
I managed to build working image on aarch64 (Raspberry Pi 3 B+) from this Dockerfile: FROM node:10-stretch-slim as builder
RUN apt-get update \
&& apt-get install -y python build-essential unzip \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/bpatrik/pigallery2/releases/download/1.5.6/pigallery2.zip \
&& unzip pigallery2.zip -d pigallery2
RUN cd /pigallery2 \
&& npm install
FROM node:10-stretch-slim
RUN apt-get update \
&& apt-get install -y ffmpeg \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /pigallery2 /app
WORKDIR /app
EXPOSE 80
CMD npm start It should work for any architecture which is supported by node docker image. |
Hi @Zebradil, Thank you very much. Patrik |
I started from your Dockerfile FROM arm32v7/node:10-stretch but it didn’t build because of js dependencies aren’t available for my architecture. So, the way out is to build distribution on usual architecture first and the install it inside Dockerfile. The official node image works because they provide it for different architectures, but somehow implicitly. Docker automatically fetches appropriate version. I don’t know how to implement it with custom image. |
I see, thank you very much! |
@Zebradil Unfortunately I wasn't able to build using this Dockerfile on Raspberry Pi 3b+
Edit I am on Stretch 9.9 which doesn't seem to be in the list of supported OS versions, so that's probably why. |
Just an assumption: try to install sqlite-dev first.
…Sent from my iPhone
On 17. Jun 2019, at 17:04, Dan0 ***@***.***> wrote:
Unfortunately I wasn't able to build using this Dockerfile on Raspberry Pi 3b+
npm ERR! errno 1
npm ERR! ***@***.*** install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ***@***.*** install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-06-17T06_09_10_615Z-debug.log
The command '/bin/sh -c cd /pigallery2 && npm install' returned a non-zero code: 1```
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Pigallery2 now supports arm ( bpatrik/pigallery2:nightly-stretch tested on Raspberry PI 3). |
@bpatrik great jobs, works like a charm! |
Describe the bug
When I run docker with this container on Raspberry PI I see the following error:
I think it may be related to that Raspberry PI 3 is ARM based.
Environment (please complete the following information):
Used app version:
The text was updated successfully, but these errors were encountered: