Mysql: "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown

Created on 19 Jun 2018  路  2Comments  路  Source: docker-library/mysql

exec this code

docker run --rm -d -e MYSQL_ROOT_PASSWORD=root mysql:tag

but get
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown.

question

Most helpful comment

The reason is the ' docker-entrypoint.sh' does not have executable permission. You either need to add executable permission for the file present in your working directory where you build docker file or add chmod command to change the permission of the file in Dockerfile after you copied the file to /usr/local/bin/.

All 2 comments

The reason is the ' docker-entrypoint.sh' does not have executable permission. You either need to add executable permission for the file present in your working directory where you build docker file or add chmod command to change the permission of the file in Dockerfile after you copied the file to /usr/local/bin/.

Was this page helpful?
0 / 5 - 0 ratings