standard_init_linux.go:207: exec user process caused "no such file or directory"
原因一
Docker使用Alpine做基础镜像,Alpine默认/bin/sh, 要使用/bin/bash需要额外安装的。
entrypoint.sh 请使用 #!/bin/sh 开头。
原因二
entrypoint.sh 赋予执行权限
chmod +x entrypoint.sh
standard_init_linux.go:207: exec user process caused "no such file or directory"
原因一
Docker使用Alpine做基础镜像,Alpine默认/bin/sh, 要使用/bin/bash需要额外安装的。
entrypoint.sh 请使用 #!/bin/sh 开头。
原因二
entrypoint.sh 赋予执行权限
chmod +x entrypoint.sh