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

描述:windows10下跑docker-compose -f docker-compose-dev.yml up -d --build:

1.报错:standard_init_linux.go:207: exec user process caused "no such file or directory"

2.原因:向github仓库push代码时,Powershell会将LF字符转换成CRLF

3.解决方法: 下载dos2unix执行程序,https://sourceforge.net/projects/dos2unix/

参考执行命令:
image.png

dos2unix.exe E:\\study\\docker-flask-react\\services\\users\\entrypoint.sh

再执行docker命令就通过了。

你可能感兴趣的:(standard_init_linux.go:207: exec user process caused "no such file or directory")