docker sh编码格式问题

在使用Dockerfile构建完镜像之后,run容器的时候有时候会报下面的错误:

1
standard_init_linux.go:190: exec user process caused "no such file or directory"

sh本身写的没有错误,经排查是编码格式的问题,使用编辑器把sh文件的换行由CRLF换成LF即可。

你的支持我的动力