Container command '/start.sh' not found or does not exist, entrypoint to container is shell script

后端 未结 2 1078
北海茫月
北海茫月 2020-12-31 00:31

Project contents:

rob@work:~/git/proj $ ls
lib     node_modules  props.json    start.sh
app.js  Dockerfile    package.json  README.md

2条回答
  •  [愿得一人]
    2020-12-31 01:09

    You have some issues:

    • You must use ./start.sh to run the start.sh file from current directory. /start.sh run start.sh in root /, which does not exist.

    • Your shebang line in start.sh script is wrong, it's must be #!/bin/bash.

    • You also must set executable permission for start.sh, by running chmod +x start.sh.

提交回复
热议问题