Now, you know that every image is a read only.
And it has multiple afast layers.
Now it's a good time to create new container based on older default image.
And let's create the throws.
Hello, rolled container.
For that, let's use Doka run command that will create a new container.
And afterwards as argument we supply.
Name of the image we want to use.
Hello desk world Raqib.
That this image is already located in our local cache.
We have other deployed from Docker Hub.
Great.
Let's press enter.
And you simply see some text in this output.
And afterwards we go back to time and all.
And that means that container is no longer running.
It has performed some job and that's it.
And now there are two questions.
First one, why this container has printed this thanks to the terminal, how it knows which action to
perform.
When we create new container.
And second question, why this container has exited.
Why it is no longer running.
Actually, I could verify that it does not run anymore using Docker P.
P.S. comment and least of active containers is empty.
Before answering those questions, let me read together with you.
This output.
Hello from Docker.
This message shows that your installation appears to be working correctly to generate this message.
Docker took following steps.
Third step Docker client contacted the dock, a demon Raqib.
That Docker command is actually Dogra client.
It is a binary file located at your computer.
And when you enter Docker, along with any additional commands, Doka client contact Doka Deman and
sends this command to it.
That's what happened under the hood.
Next step, Dr. Deman pulled.
Hello, road image from Docker Hub.
Basically, we have already pulled this image this way.
This step was Dep't Dogor has verified that there was already a hello world image located in local cache.
That's why there was no need to build from Docker Hub.
Next step, Doka demon created a new container from dead image, which rantz executable that produces
output.
You are currently reading.
That means that Dogra has created new container based on Kyllo world image.
But what is actually container?
I'll answer this question in the next larochelle.
But let me finish reading this output.
Finally, Dr. Demon Streambed, that output to the doctor client which sent it to your terminal.
It means that communication between doctor client and Dr. Deman is bidirectional Dogra client sends
some commands to Dr. Deman and Dr. Deman riddles some result.
And this result was a, it don't actually bite.
Dr. Dema and Doc, our client, has printed this text to the terminal and afterwords last step that
was on me that here this docker container was stopped.
Because it has already done its job.
Now let me proceed and next, let me clarify a bit deeper.
What actually happened under the hood and what this container and white container decides to print ciphertext
to the terminal?
Let me talk about it in the next lecture.
Bye bye.