Why won't my docker-entrypoint.sh execute?

前端 未结 11 1027
清歌不尽
清歌不尽 2021-01-31 08:02

My ENTRYPOINT script doesn\'t execute and throws standard_init_linux.go:175: exec user process caused \"no such file or directory\". Why so?

<
11条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 08:31

    Without seeing your image, my initial idea is that you don't have /bin/bash in your image. Changing the first line of your docker-entrypoint.sh to:

    #!/bin/sh
    

    will likely resolve it.

提交回复
热议问题