-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
“apb list”: Exception occurred! [Errno 2] No such file or directory: '/root/.kube/config' #298
Comments
Edit the script again, and in the place where it says
|
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
And that will work with any $UID and will prevent errors like if the $HOME/.kube dir ownership is by uid |
To support root or non-root docker invocations, set the KUBECONFIG specifically to the passed .kube dir. The reason is that 'oc' incovation as root is by default looking for the .kube dir uner `/root/.kube/config` where as non-root is looking at $HOME/.kube/config. With this we always set KUBECONFIG, so root invocation of `oc` commands will always find the passed in config. Fixes: ansibleplaybookbundle#298 Signed-off-by: Roy Golan <[email protected]>
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).
The text was updated successfully, but these errors were encountered: