docker: executable file not found in $PATH

后端 未结 10 997
刺人心
刺人心 2020-11-28 02:02

I have a docker image which installs grunt, but when I try to run it, I get an error:

Error response from daemon: Cannot start container foo_1         


        
10条回答
  •  春和景丽
    2020-11-28 02:44

    problem is glibc, which is not part of apline base iamge.

    After adding it worked for me :)

    Here are the steps to get the glibc

    apk --no-cache add ca-certificates wget
    wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
    wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
    apk add glibc-2.28-r0.apk
    

提交回复
热议问题