you want to set a context but you get the error:
error: open /etc/kube/config.lock: permission denied
kubernetes/kubernetes#67676 (comment)
$ kubectl config get-contexts
$ kubectl config use-context "yourContext"
$ kubectl config current-context
kubectl exec -it pod-name --container=myContainer -- /bin/bash
https://kubernetes.io/docs/reference/kubectl/cheatsheet/#interacting-with-deployments-and-services