Before creation of multiple contain those based in the same image.
Let me briefly explain you what option DST means in the doc around comment.
Basically in one of the previous lecturers in multiple actually we have used this option but the Hamilton
explained what it means.
Let me just type here.
Dr Ron does this help and here you'll see this option on the least you could use either this deal or
there's desk DTI and it allocates sailed or to die.
I'll explain what it does actually in a minute.
Also if you scroll up you'll find option this i or does desk interactive and with this option in place
you will be connected to as to the instant that input or specific process that does are running inside
of the container.
Okay let's first create a container using only desk I option next.
Let's try to use only DST option.
And finally let's combine this I and this the options together.
Okay.
Let's do it.
DR RON Dash I Alpine.
And here I am now attached to C H brought us inside the Alpine container and I am able to list files
I am able to create new folders and gate D I are tasked C D test next let's for example write some text
on the file like Echo law from Alpine and let's write this text to file the extreme west Nile is the
files in the test folder and we see response from the process and the U.S. file name file to the extreme
and no let's read the contents of this file a court file the DST and I should see hello from Alpine.
And yes I see this result but as you see here when we use only this I option we don't see any common
bromide.
We don't see a need for a mountain of the output and so on.
That's why it was option the steam Docker is able to create for you sailed the DTI and it will actually
produce some nice looking common from the format results and so on.
Let's try it.
I could try to terminate this process using a control C but it will not work and you know why is that
because this process stage brought inside of this container does not accept such commands.
That's why you are able.
Eyes are a stop container or kill it or you are able to use exert command inside the DCH terminal that
will exit from DCH brought us and of course container will be terminated after that.
Let's try that exit and yes we where exit that from stage brought us and you file leased container was
now Dr. P.S. I see empty output there are no containers count urine No.
Let's try to create same container based on an image but no using only this the option list also lets
clear terminal Docker run DST Alpine and I actually seek a month prompt but I am not able to enter any
commands and they don't get any results from me.
That's because no I am not actually connected to stand out in old CHF brought us.
That's why it's not enough to use only this option that will emulate Salvador to.
You will be able to enter any commands or get any output from specific brought us.
Let me exit from this.
Actually I'm not sure whether I will be able to do so.
No I am not able to do so.
That's why in this case I need to terminate container manually.
Was gold to separate tap Docker B.S. here and dock are kill and I.D. on the container container was
skilled and they see that this first session this step just around good Gabel is fine.
Let's go here and they see that this process was terminated.
Okay let's not launch a same container was by an image but now using both options dash D and best I
was clear.
Terminal Docker Iran and you are able to use those two options at best I and Desh de separated like
so or you are able to combine them and deride simply dash a deal.
Please remember that now we are using two different options not a single option called Deal.
Great.
Lets know type.
Name of the image.
Alpine Empress Anton.
And now you see command prompt and if it's a for example to be in you'll see that this command prompt
will be adjusted accordingly.
If I leased files here in the folder you will see that they were formatted with different colors and
this tends to sell the deal.
Great.
That's how you able to get access to specific process using cell 2 to try and interactive option that
will actually connect you to standard input and output auth Pacific brought us.
In our case there was a default process c h shell grade.
Let's not try to terminate this process using control C but it will work.
Reason is the same as before.
I have explained you that C H process does not accept the any system commands but you are able to exit
from this process as from any shell.
Using exit command lets type exit this C H brought us inside of the container will be terminated.
There will be no hours or processes running and docker will therefore terminate this container w type
exit enter and we get back to our terminal brand and you file leased container was no longer appears.
You will see nothing.
Container was exited great.
There is a difference between this ie this D and this AI.
This the options.
Let's try it.
To do the same wheels for example one to image.
Let's clear time and null and the type Docker run this idea or want to work up that one is already present
in our local image just cache container was created and we always looked in as a root user and look
up the boom to default.
Command is actually been based.
Let me list contain there's no end here you see this command.
Bin bash.
This is actually shell but it differs from this C H shell this way here in this step.
You see a NAS among bromide and it includes a user name and hostname of this one container.
If I released files I would get a similar result and you file a C D for example to being released files
here.
I get similar output.
Same as a whole scene in C H shell.
Let's also try to terminate this process using control C.
Also same result but you are able again to exit from this process.
In this case bash process using exert command and no process was terminated and the container was deleted
as well.
Let's where you find it Docker.
Yes and no there are no containers currently run.
That's all about the best option that you could use with Docker on command and in most cases it is used
along with IE option and those options could be combined and you could write simply a dash 80 DST option
creates to the eye that allows you to interact with specific process inside of the container.
That's all for this lecture and the next one.
Let me create the multiple container based on the same image.
I'll see you next.
My main.