mthenw / frontail

📝 streaming logs to the browser. Sponsored by https://cloudash.dev
https://cloudash.dev
MIT License
1.81k stars 249 forks source link

Default Docker runs on arm? #168

Open rklueber opened 5 years ago

rklueber commented 5 years ago

Hello,

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

docker-compose: ` frontail: image: mthenw/frontail container_name: frontail ports:

$ 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 commented 5 years ago

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

mthenw commented 5 years ago

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

rklueber commented 5 years ago

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 commented 5 years ago

Should I change it to something different?

rklueber commented 5 years ago

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

FROM node:8-alpine

mthenw commented 5 years ago

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

rklueber commented 5 years ago

Thanks for considering it.

mthenw commented 5 years ago

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

cartemere commented 5 years ago

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 commented 5 years ago

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

fex01 commented 4 years ago

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...

UdoWeberJR commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

mthenw commented 4 years ago

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

UdoWeberJR commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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"]