Hi I am building a docker image from my project an...
# general
m
Hi I am building a docker image from my project and hosting it on GitHub packages. Then I am using microk8s to run my Kubernetes cluster locally using this image. But I am getting the following error on starting pods Can anyone please suggest how to resolve this?
Copy code
exec /bin/main.pex: exec format error
r
This isn’t very informative. Have you tried running this pex outside of the docker? Or inside the docker manually?
m
pex outside the docker works fine
r
I would guess there are some permission issues inside docker. Try running manually inside the docker itself.
m
the pex file inside docker runs fine. But failing to run inside microk8s with the message
Copy code
exec /bin/main.pex: exec format error
I drill down the issue to be with the pex file being built and package in Linux machine and being run on macOS machine
r
ah ok! That’s hard to figure out if you aren’t aware of PEX being platform specific.
m
yes indeed.