standard_init_linux.go:211: exec user process caused “exec format error”

前端 未结 4 1045
孤独总比滥情好
孤独总比滥情好 2020-12-29 18:58

I am building the Dockerfile for python script which will run in minikube windows 10 system below is my Dockerfile

Building the docker using the below command

4条回答
  •  时光说笑
    2020-12-29 19:40

    I can see that you add the command command: [/app/helloworld.py] to yaml file.

    so you need to (in Dockerfile):

    RUN chmod +x /app/helloworld.py
    

    set shebang to your py file:

    #!/usr/bin/env python # whatever your defualt python to run the script
    

    or setup the command the same as you did in Dockerfile

提交回复
热议问题