Running oc exec
Error from server: container date is not valid for pod
It appears that the oc command is interpreting the -c option as its own instead of passing it along as a command line argument to bash
oc version
oc v1.4.1
kubernetes v1.4.0+776c994
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://oso-master.cisco.com:8443
openshift v1.4.0+208f053
kubernetes v1.4.0+776c994
Error from server: container date is not valid for pod
N/A
I just realized that using -- to separate the exec from the command solves this problem
Most helpful comment
I just realized that using -- to separate the exec from the command solves this problem