Open silencehe09 opened 6 years ago
Edit the script again, and in the place where it says -u $UID
put -u 1000
. If that works well I'll send a patch to fix it, like in this one here https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/blob/52cff6fb5d7445ad0820a988491ab804672f42c9/scripts/apb-docker-run.sh#L46
I run into the same problem, and I can confirm this fixed the issue.
Cheers
The more elegant solution is just add the KUBECONFIG variable to match the volume path
-e KUBECONFIG=/.kube/config
And that will work with any $UID and will prevent errors like if the $HOME/.kube dir ownership is by uid which is not 1000.
Dear author: I need your help. I have commented the condition "apb should not be run as root" in apb-docker-run.sh , because I have to run docker with root user (without considering about security in my experimental env). And I have run "apb init apb-demo && cd apb-demo && apb build " successfully. But I got exception when executing "apb list", "apb bootstrap" and so on. I have already logged in openshift with cluster-admin role . The following are some shell cmds and output:
The Linux version is CentOS7 (Linux localhost.localdomain 3.10.0-514.el7.x86_64).