[GH-ISSUE #168] Default Docker runs on arm? #116

Open
opened 2026-03-03 16:04:33 +03:00 by kerem · 19 comments
Owner

Originally created by @rklueber on GitHub (Jul 1, 2019).
Original GitHub issue: https://github.com/mthenw/frontail/issues/168

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

Originally created by @rklueber on GitHub (Jul 1, 2019). Original GitHub issue: https://github.com/mthenw/frontail/issues/168 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
Author
Owner

@mthenw commented on GitHub (Jul 3, 2019):

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

<!-- gh-comment-id:508227469 --> @mthenw commented on GitHub (Jul 3, 2019): Hey, good question. I've never tried to run it on ARN.
Author
Owner

@mthenw commented on GitHub (Jul 3, 2019):

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

<!-- gh-comment-id:508227573 --> @mthenw commented on GitHub (Jul 3, 2019): I guess it might be some general issue with Docker on ARN.
Author
Owner

@rklueber commented on GitHub (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.

<!-- gh-comment-id:508245687 --> @rklueber commented on GitHub (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.
Author
Owner

@mthenw commented on GitHub (Jul 3, 2019):

Should I change it to something different?

<!-- gh-comment-id:508246412 --> @mthenw commented on GitHub (Jul 3, 2019): Should I change it to something different?
Author
Owner

@rklueber commented on GitHub (Jul 3, 2019):

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

FROM node:8-alpine

<!-- gh-comment-id:508247966 --> @rklueber commented on GitHub (Jul 3, 2019): Thanks. My answer above was send pre mature ,-). Sorry. FROM node:8-alpine
Author
Owner

@mthenw commented on GitHub (Jul 3, 2019):

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

<!-- gh-comment-id:508248529 --> @mthenw commented on GitHub (Jul 3, 2019): Hmm, that change would cause that the image would be significantly bigger. Let me think about it.
Author
Owner

@rklueber commented on GitHub (Jul 3, 2019):

Thanks for considering it.

<!-- gh-comment-id:508249011 --> @rklueber commented on GitHub (Jul 3, 2019): Thanks for considering it.
Author
Owner

@mthenw commented on GitHub (Jul 3, 2019):

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

<!-- gh-comment-id:508252161 --> @mthenw commented on GitHub (Jul 3, 2019): The difference in size in minimal. I switched to the Node's official image. Thanks for reporting it!
Author
Owner

@cartemere commented on GitHub (Jul 29, 2019):

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.

<!-- gh-comment-id:516182679 --> @cartemere commented on GitHub (Jul 29, 2019): 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.
Author
Owner

@mthenw commented on GitHub (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.

<!-- gh-comment-id:517007199 --> @mthenw commented on GitHub (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.
Author
Owner

@fex01 commented on GitHub (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...

<!-- gh-comment-id:575736523 --> @fex01 commented on GitHub (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...
Author
Owner

@UdoWeberJR commented on GitHub (Mar 8, 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...

Same here :(

<!-- gh-comment-id:596217219 --> @UdoWeberJR commented on GitHub (Mar 8, 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... Same here :(
Author
Owner

@ghost commented on GitHub (Mar 26, 2020):

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

<!-- gh-comment-id:604280747 --> @ghost commented on GitHub (Mar 26, 2020): Same issue here with raspberry pi3; is there a workaround or soon fix? @mthenw Would be really great! Thx a lot in advance. Seb
Author
Owner

@UdoWeberJR commented on GitHub (Mar 26, 2020):

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

<!-- gh-comment-id:604364819 --> @UdoWeberJR commented on GitHub (Mar 26, 2020): > 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"]`
Author
Owner

@mthenw commented on GitHub (Mar 26, 2020):

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

<!-- gh-comment-id:604452292 --> @mthenw commented on GitHub (Mar 26, 2020): hmm, if that's the case, I will try to fix it right away.
Author
Owner

@mthenw commented on GitHub (Mar 26, 2020):

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

<!-- gh-comment-id:604475967 --> @mthenw commented on GitHub (Mar 26, 2020): I published new image `mthenw/frontail:4.9.1`. Can you try it?
Author
Owner

@UdoWeberJR commented on GitHub (Mar 26, 2020):

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"

<!-- gh-comment-id:604480741 --> @UdoWeberJR commented on GitHub (Mar 26, 2020): > 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"`
Author
Owner

@Schnuecks commented on GitHub (Oct 31, 2020):

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

<!-- gh-comment-id:719976696 --> @Schnuecks commented on GitHub (Oct 31, 2020): 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
Author
Owner

@Schnuecks commented on GitHub (Nov 10, 2020):

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"]
<!-- gh-comment-id:724770843 --> @Schnuecks commented on GitHub (Nov 10, 2020): 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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#116
No description provided.