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

Default Docker runs on arm? #168

Open
rklueber opened this issue Jul 1, 2019 · 19 comments
Open

Default Docker runs on arm? #168

rklueber opened this issue Jul 1, 2019 · 19 comments

Comments

@rklueber
Copy link

rklueber commented Jul 1, 2019

Hello,

I tried to run the docker on arm/Pi3B+.

docker-compose:
frontail: image: mthenw/frontail container_name: frontail ports: - 9001:9001 volumes: - ../userdata/logs:/log

$ docker-compose up frontail Creating frontail ... done Attaching to frontail frontail | standard_init_linux.go:190: exec user process caused "exec format error" frontail exited with code 1
Do I miss anything simple? Or is the docker as such not working on arm and I need to build/have another Dockerfile.

Regards.
Ralf

@mthenw
Copy link
Owner

mthenw commented Jul 3, 2019

Hey, good question. I've never tried to run it on ARN.

@mthenw
Copy link
Owner

mthenw commented Jul 3, 2019

I guess it might be some general issue with Docker on ARN.

@rklueber
Copy link
Author

rklueber commented Jul 3, 2019

Hello, no general issue with arm. it is caused by the image you build your Dockerfile on. This one is not universal and does not run on arm.

You built upon
FROM mhart/alpine-node:8.12.0

I did my own Dockerfile which was easy to build based on your excelent documentation. This one is universal and runs on any architecture.

FROM node:8-alpine
RUN npm i frontail -g 
ENTRYPOINT [ "/usr/local/bin/frontail" ]
CMD ["--help"]

Works like a charm.

@mthenw
Copy link
Owner

mthenw commented Jul 3, 2019

Should I change it to something different?

@rklueber
Copy link
Author

rklueber commented Jul 3, 2019

Thanks. My answer above was send pre mature ,-). Sorry.

FROM node:8-alpine

@mthenw
Copy link
Owner

mthenw commented Jul 3, 2019

Hmm, that change would cause that the image would be significantly bigger. Let me think about it.

@rklueber
Copy link
Author

rklueber commented Jul 3, 2019

Thanks for considering it.

@mthenw mthenw closed this as completed in 5bf8059 Jul 3, 2019
@mthenw
Copy link
Owner

mthenw commented Jul 3, 2019

The difference in size in minimal. I switched to the Node's official image. Thanks for reporting it!

@cartemere
Copy link

Hello,

I just tried to run the last docker image on my Rasberry Pi 3B+, on Raspbian Buster (ARM32v7), and it does not work.

pi@raspberrypi:/var/log $ docker run --name=test -it -P -v /var/log:/log mthenw/frontail /log/syslog standard_init_linux.go:211: exec user process caused "exec format error"

the base image seems to be incompatible with the RPi architecture.

@mthenw
Copy link
Owner

mthenw commented Jul 31, 2019

@cartemere can I ask you to try building frontail image from the Dockerfile in the repo? Based on @rklueber comments it should work.

@fex01
Copy link

fex01 commented Jan 17, 2020

Hi @mthenw,

I'm getting the same error on my Raspberry 4B, regardless if I use a docker-compose file or 'docker run -d -P -v /var/log:/log mthenw/frontail /log/syslog' from your README...

@mthenw mthenw reopened this Jan 19, 2020
@UdoWeberJR
Copy link

Hi @mthenw,

I'm getting the same error on my Raspberry 4B, regardless if I use a docker-compose file or 'docker run -d -P -v /var/log:/log mthenw/frontail /log/syslog' from your README...

Same here :(

@sebakirs
Copy link

Same issue here with raspberry pi3; is there a workaround or soon fix? @mthenw Would be really great! Thx a lot in advance. Seb

@UdoWeberJR
Copy link

Same issue here with raspberry pi3; is there a workaround or soon fix? @mthenw Would be really great! Thx a lot in advance. Seb

I helped myself with a base image of node, worked for me. (I ignored the deprecated warning during installation of frontail)

FROM node:latest
RUN npm i frontail -g

Don't forget to start frontail with your log files:
CMD ["frontail","/path/to/your.log"]

@mthenw
Copy link
Owner

mthenw commented Mar 26, 2020

hmm, if that's the case, I will try to fix it right away.

@mthenw
Copy link
Owner

mthenw commented Mar 26, 2020

I published new image mthenw/frontail:4.9.1. Can you try it?

@UdoWeberJR
Copy link

I published new image mthenw/frontail:4.9.1. Can you try it?

Tried it out, is seems not to pull the right architecture, while the node image does.

standard_init_linux.go:211: exec user process caused "exec format error"

@Schnuecks
Copy link

Hi, any progess on this ?I still got this error:
standard_init_linux.go:211: exec user process caused "exec format error" on my Raspberry Pi 3 and 4

@Schnuecks
Copy link

So, this is my current Dockerfile which works on a raspberry pi 4

FROM node:12-stretch-slim

RUN npm i frontail -g

ENTRYPOINT [ "/usr/local/bin/frontail" ]

CMD ["--help"]

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

7 participants