docker镜像制作异常standard_init_linux.go:207: exec user process caused "no such file or directory"

异常:standard_init_linux.go:207: exec user process caused "no such file or directory"

原因:window下创建shell脚本,copy至docker镜像中,镜像是基于linux系统的,由于windows和linux对换行对应的转移符处理的不同,导致报此异常

处理方式:1.RUN tr -d '\r' /usr/local/tomcat/getParams.unix
RUN rm -f /usr/local/tomcat/getParams.sh
RUN mv /usr/local/tomcat/getParams.unix /usr/local/tomcat/getParams.sh

 

2.使用notepadd++创建文件选择unix格式docker镜像制作异常standard_init_linux.go:207: exec user process caused

你可能感兴趣的:(docker)