From 11c36c89ac4dd27caffb68acbb63f028748b5f04 Mon Sep 17 00:00:00 2001 From: Rajakavitha1 <37059749+Rajakavitha1@users.noreply.github.com> Date: Tue, 20 Mar 2018 16:12:19 +0530 Subject: [PATCH] Incorporated the changes suggested. --- docs/reference/kubectl/docker-cli-to-kubectl.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/reference/kubectl/docker-cli-to-kubectl.md b/docs/reference/kubectl/docker-cli-to-kubectl.md index 31e2128688991..1b02e68a7cd20 100644 --- a/docs/reference/kubectl/docker-cli-to-kubectl.md +++ b/docs/reference/kubectl/docker-cli-to-kubectl.md @@ -35,6 +35,7 @@ deployment "nginx-app" created ``` **Note:** `kubectl` commands print the type and name of the resource created or mutated, which can then be used in subsequent commands. You can expose a new Service after a Deployment is created. +{: .note} ```shell # expose a port through with a service @@ -53,7 +54,7 @@ kubectl run [-i] [--tty] --attach --image= Unlike `docker run ...`, if you specify `--attach`, then you attach `stdin`, `stdout` and `stderr`. You cannot control which streams are attached (`docker -a ...`). To detach from the container, you can type the escape sequence Ctrl+P followed by Ctrl+Q. -Because kubectl run command starts a Deployment for the container, the Deployment restarts if you terminate the attached process by using Ctrl+C unlike `docker run -it`. +Because the kubectl run command starts a Deployment for the container, the Deployment restarts if you terminate the attached process by using Ctrl+C, unlike `docker run -it`. To destroy the Deployment and its pods you need to run `kubectl delete deployment `. #### docker ps @@ -219,6 +220,7 @@ $ kubectl get po -l run=nginx-app ``` **Note:** When you use kubectl, you don't delete the pod directly.You have to fiirst delete the Deployment that owns the pod. If you delete the pod directly, the Deployment recreates the pod. +{: .note} #### docker login