diff --git a/docs/man/man1/kubectl-attach.1 b/docs/man/man1/kubectl-attach.1 index a2ed28c6f67..c9ef5ba82d8 100644 --- a/docs/man/man1/kubectl-attach.1 +++ b/docs/man/man1/kubectl-attach.1 @@ -133,7 +133,7 @@ Attach to a a process that is already running inside an existing container. $ kubectl attach 123456\-7890 # Get output from ruby\-container from pod 123456\-7890 -$ kubectl attach 123456\-7890 \-c ruby\-container date +$ kubectl attach 123456\-7890 \-c ruby\-container # Switch to raw terminal mode, sends stdin to 'bash' in ruby\-container from pod 123456\-7890 # and sends stdout/stderr from 'bash' back to the client diff --git a/docs/user-guide/kubectl/kubectl_attach.md b/docs/user-guide/kubectl/kubectl_attach.md index 56482e80803..9200200670e 100644 --- a/docs/user-guide/kubectl/kubectl_attach.md +++ b/docs/user-guide/kubectl/kubectl_attach.md @@ -51,7 +51,7 @@ kubectl attach POD -c CONTAINER $ kubectl attach 123456-7890 # Get output from ruby-container from pod 123456-7890 -$ kubectl attach 123456-7890 -c ruby-container date +$ kubectl attach 123456-7890 -c ruby-container # Switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-7890 # and sends stdout/stderr from 'bash' back to the client @@ -98,7 +98,7 @@ $ kubectl attach 123456-7890 -c ruby-container -i -t * [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager -###### Auto generated by spf13/cobra on 9-Oct-2015 +###### Auto generated by spf13/cobra on 17-Nov-2015 [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_attach.md?pixel)]() diff --git a/pkg/kubectl/cmd/attach.go b/pkg/kubectl/cmd/attach.go index 38e2da521bb..2db8e14b2ba 100644 --- a/pkg/kubectl/cmd/attach.go +++ b/pkg/kubectl/cmd/attach.go @@ -39,7 +39,7 @@ const ( $ kubectl attach 123456-7890 # Get output from ruby-container from pod 123456-7890 -$ kubectl attach 123456-7890 -c ruby-container date +$ kubectl attach 123456-7890 -c ruby-container # Switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-7890 # and sends stdout/stderr from 'bash' back to the client