Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue f9e1ef97db Merge pull request #30717 from juanvallejo/jvallejo_add-oc-describe-help-suggestion
Automatic merge from submit-queue

add suggestion to use `describe` to obtain container names

**Release note**:
```release-note
release-note-none
```

Commands with the `--container=` option provide no suggestions to a user
on how to obtain a container's name from a pod.

This patch adds a suggestion on the usage output to use the `describe`
command on a pod to obtain the container value that is passed to the
`--container=` flag.

`$ kubectl exec -h`
```
Execute a command in a container.

Examples:

kubectl exec 123456-7890 date

kubectl exec 123456-7890 -c ruby-container date

kubectl exec 123456-7890 -c ruby-container -i -t -- bash -il

Flags:
  -c, --container string   Container name. If omitted, the first container in the pod will be chosen. Use the 'describe' command to find the list of containers on a pod.
  -p, --pod string         Pod name
  -i, --stdin              Pass stdin to the container
  -t, --tty                Stdin is a TTY
2016-09-10 12:02:10 -07:00
..
2016-07-08 13:53:09 +02:00
2016-07-18 00:32:13 -04:00
2016-08-31 21:16:46 -07:00
2016-08-23 14:51:56 +08:00
2016-08-23 14:51:56 +08:00
2016-08-20 15:58:10 +02:00
2016-07-20 13:37:14 -04:00
2016-08-31 09:50:22 +08:00
2016-08-23 14:51:56 +08:00
2016-07-28 17:47:03 +03:00
2016-07-14 16:23:02 +03:00
2016-07-08 13:53:09 +02:00
2016-08-31 21:16:46 -07:00
2016-07-08 13:53:09 +02:00
2016-08-12 15:45:57 +02:00
2016-08-12 15:45:57 +02:00
2016-08-20 15:58:10 +02:00
2016-08-19 17:28:25 +02:00