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

前端 未结 11 1048
清歌不尽
清歌不尽 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条回答
  •  执念已碎
    2021-01-31 08:22

    This problem is to do with line endings and I solved it with the solution below

    Convert the DOS file to a unix format. This removes any wired line endings.

    dos2unix - is available in alpine as well as other Linux distributions.

    I used it like so: RUN apk add dos2unix && dos2unix /entry.sh

提交回复
热议问题