docker entrypoint running bash script gets “permission denied”

前端 未结 6 1770
北海茫月
北海茫月 2020-12-07 10:48

I\'m trying to dockerize my node.js app. When the container is built I want it to run a git clone and then start the node server. Therefore I put these operatio

6条回答
  •  天涯浪人
    2020-12-07 11:51

    If you do not use DockerFile, you can simply add permission as command line argument of the bash:

    docker run -t   /bin/bash -c "chmod +x /usr/src/app/docker-entrypoint.sh; /usr/src/app/docker-entrypoint.sh"
    

提交回复
热议问题