From 809dd369ad03015f9188089fa2a99cf58dddb868 Mon Sep 17 00:00:00 2001 From: abregman Date: Wed, 20 Oct 2021 10:10:12 +0300 Subject: [PATCH] Minor update --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ef085ff..ec4527b 100644 --- a/README.md +++ b/README.md @@ -5735,15 +5735,15 @@ Create, Kill, Delete, Start and Query State.
How to list all the containers on a given host?
-`podman container ls` or `docker container ls` (depends on which containers technology you are using) +In the case of Docker, use: `docker container ls`
+In the case of Podman, it's not very different: `podman container ls`
How to run a container?
-Depends on which containers technology you are using. - -`docker container run ubuntu` or `podman container run ubuntu` for example. +Docker: `docker container run ubuntu`
+Podman: `podman container run ubuntu`
@@ -5771,7 +5771,17 @@ False. You have to stop the container before removing it.
How to stop and remove a container?
-`podman container stop [contatiner id/name] && podman container rm [container id/name]` +`podman container stop && podman container rm ` +
+ +
+What happens when you run docker container run ubuntu?
+ +1. Docker client posts the command to the API server running as part of the Docker daemon +2. Docker daemon checks if a local image exists + 1. If it exists, it will use it + 2. If doesn't exists, it will go to the remote registry (Docker Hub by default) and pull the image locally +3. containerd and runc are instructed (by the daemon) to create and start the container
#### Containers - Images