I have a derived image that works with 0.9 but it crashes from 0.10 to the latest due to "exec format error" #486
-
I have this Dockerfile that uses
This has been running smoothly for a year with v0.9. I was testing to update it to 0.14, but it crashed. I tracked it down and I can only go up to v0.9 without the issue. If I update it with version 0.10 or higher, the container does not run, with the error:
It is not about the content of the script. I checked it and it is not executed at all. What could be happening? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @ignlg, what is the platform you're running your script on? Does the native Thinking a bit more, since TL;DR: sql_exporter binary from the original image might be unsupported by the destination image platform/os. The best way to find this out is to extract the binary, and check info with References: |
Beta Was this translation helpful? Give feedback.
Hi @ignlg, what is the platform you're running your script on? Does the native
sql_exporter
image work for you?Thinking a bit more, since
v0.10
sql_exporter is usingDockerfile.multi-arch
file for building images (to support linux/amd64 and linux/arm64 platforms), so it might be that you need to keep in mind the platform-specific parameters and build your image accordingly with passing these.TL;DR: sql_exporter binary from the original image might be unsupported by the destination image platform/os. The best way to find this out is to extract the binary, and check info with
file sql_exporter
to get the binary headers.References: