Skip to content

Commit 11c36c8

Browse files
authored
Incorporated the changes suggested.
1 parent 81f0153 commit 11c36c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/reference/kubectl/docker-cli-to-kubectl.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ deployment "nginx-app" created
3535
```
3636

3737
**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.
38+
{: .note}
3839

3940
```shell
4041
# expose a port through with a service
@@ -53,7 +54,7 @@ kubectl run [-i] [--tty] --attach <name> --image=<image>
5354
Unlike `docker run ...`, if you specify `--attach`, then you attach `stdin`, `stdout` and `stderr`. You cannot control which streams are attached (`docker -a ...`).
5455
To detach from the container, you can type the escape sequence Ctrl+P followed by Ctrl+Q.
5556

56-
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`.
57+
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`.
5758
To destroy the Deployment and its pods you need to run `kubectl delete deployment <name>`.
5859

5960
#### docker ps
@@ -219,6 +220,7 @@ $ kubectl get po -l run=nginx-app
219220
```
220221

221222
**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.
223+
{: .note}
222224

223225
#### docker login
224226

0 commit comments

Comments
 (0)