docker-compose  Dockerfile always run script failed, many document is talking about

RUN chmod +x   xxxooo.sh

But still can’t run, get error every time.

Answer:

Use notepad++, go to edit -> EOL conversion -> change from CRLF to LF.

standard_init_linux.go:190: exec user process caused “no such file or directory”

https://stackoverflow.com/questions/51508150/standard-init-linux-go190-exec-user-process-caused-no-such-file-or-directory