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.
Is this related https://github.com/docker-library/postgres/issues/296
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/.
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/.