bash - File Permission error in Google Cloud (GKE) Kubernetes Docker Container -


i trying run initialisation script within docker container deployed using kubernetes kubectl command on google cloud container engine (gke).

the script executes without error in docker container on local system, not seem work on gke.

i using root account execute script on gke.

the dockerfile environment variable set to: env suexecusergroup false

the path shell script mapped external persistent disk. have done not need hardcode paths within shell script:

/path-to-shell-script/ mapped ~/parent-folder

the docker entry point is:

/usr/local/bin/docker-entrypoint.sh

the shell script located at:

shell script /path-to-shell-script/fix.sh

when container loading (initialisation) receive following error:

./fix.sh: permission denied

when run ls -lad /path-to-shell-script/ within container, following output:

drwxr-sr-x 19 apache apache 4096 /path-to-shell-script/

ls -la /path-to-shell-script/ shows:

... -rwxrwxr-x 1 root root 988 fix.sh ...


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -