I'm installing minikube as part of below Dockerfile:
FROM jenkins/jnlp-agent-alpine
RUN curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
install minikube-linux-amd64 /home/jenkins/minikube -o jenkins -g jenkins -m 777 && \
rm minikube-linux-amd64
Once image is built and run:
$docker build -t app:latest .
$docker run -it app:latest bash
#minikube` binary exists
bash-5.1$ls -l minikube
-rwxrwxrwx 1 jenkins jenkins 74953166 Jul 19 15:44 minikube
#however running the binary `minikube` returns `No such file or directory` error:
bash-5.1$ ./minikube
bash: ./minikube: No such file or directory
As part of debugging, I made jenkins user owner of minikube and set its permissions to be 777, though it still didn't help.
Why does No such file or directory error pop and how to solve it?