Hello, everyone, and Distomo, I'm going to show you how to run container images by using the Broadman
command the first step.
I'm going to check if I do have put my command on my system.
So I'm going to type both mind and type that that completion in order to see the commands that we contacted
him after the Woodman comment.
Also, we can go to the Manbij of the apartment, as we can see here.
So the board, it's a simple management tool for both containers and images.
Let's go back in case if you don't have put much on your system, then you need to install the content
of tools packages.
So what are you going to do?
So some I'm not looking on as as as a road user, but this account, it's it's an administrator account.
So I'm going to type sudo young module and install dash qwhy container, then dash tools to enter.
As we can see here, I already installed the container tools.
So if we don't have it, just run this comment next.
I want like to go and check the uh configuration file under districted the slash DC slash container
slash registers that.
Com Pittenger.
So under this directory we can see the different list of registers, especially here.
As we can see this registers that search.
So the registers that we do have on the system or the default register, that woman can search for container
images.
We have the register that accesses that red dot com.
We have a second register here.
Register that red had that.
And we have the third one that Dukkha that I own.
Next here is the registers that insecure.
So here is under this section, we can type the registers that don't use the as when pulling images
or use self sint.
Basically, we can see that as we can see over here between the two brackets, that the insecurely gestures,
uh, just do not have any registers or entries.
And the last thing here is there's just there's that block.
So if you would like to block or deny specific registers in the system and by default, as we can see
also here between the brackets, there are no registers and entries.
OK, let's go back.
Now, if I would like to show the current adjusters that are running or using in the system.
So I'm going to try to put my info.
As we can see over here, here are two registers that that that we can use in order to pull images or
contain images.
That is an X, if I would like to search a register for an image or container image so I can run the
command post search and for example, just search for content and image.
Fedoruk this is the operating system and it would show me the list of the container images.
There is one thing, as we can see over here.
Here we have the container images from Dukkha.
If you would like to put remote images and official RedHat products from Red how to register.
Let me show the content of this file the RedHat.
So I need to go to this Web site, create a username and password, then I need to run this command
in order that in order to register and the RedHat official Web site.
So in order to remote to put remote images on official RedHat products, uh, I already and I'm going
to run this command so soldiers music and he paste it into I already logged in.
And as you can see over here, it's already logged in to the disk registers just in case, as I said,
that if we don't have a username and password, go to this Web site and username and password, run
this command type username password in order to put your remote images and officially retired products.
So what is an X?
Now, if I would like to continue to search Boothman search, I want to know.
So I'm going to search for unhappen to image hit enter.
As you can see here, here, the list of the appointer images, I also can search for another HTP,
another image, the HTP, and also I can do that for the Ingenix tenter.
It will list all the container images on the registers.
If I if I would like to search for a container image in a specific registered, for example, Bortman
search register that read the Red Hat that I ordered and slash.
I'm going to search for Angie Ingenix image container, ok.
OK, you have to enter.
It will list all the container images in this specific register and we can do the same thing.
Like if you want to do for the car or engine, it will show you all the images on that register.
And there is also my brother, if you would like to search, for example, for, uh, Eskil or Maria
Déby also, it will list all the images for you here.
There is another option, if I would like to, uh, get more details on description of container images
so I can use this option on the trunk, then the name of the container and it will show, uh, more
details and description of the container images.
Uh, there is another option if I would like to limit the search, but man search then dash dash limit.
I will do it, too, if I would like to limit it to two necessarily to search, to enter.
So it will only what is going to do.
So this option is to only show a maximum of two images for each register.
So we have the darker here.
I know that there is support here for this register, but if you guys notice over here, those two are
the same, but maybe a different version and the same thing here.
So I'm totally off to
next if I would like to show all your official images.
So I'm going to run the command post man, search both my search dash, dash filter star stars five.
So I'm going to show you only images with five stars.
So this is like like a filter.
So as we can see, it is a five star, so it'll show only five and above the next.
If I would like to pull a lot before I'm going to pull an image.
So if I would like to follow the images, so far we don't have any image.
So I would like to pull an image.
Uh, so I'm going to pull it TPD enter, we'll take cover maybe a couple seconds, five seconds or ten
seconds in order to pull damisch.
Then I'm going to run the command padman images.
As you can see over here, we don't have any image.
So I'm going to run the command, put my image on.
As we can see over here, we have right now one image.
Uh, if I would like to show information about container's, for example, operating system architecture
for any image so I can run the command post, inspect.
I'm going to inspect this image.
So it's going to show information about the operating system and the architecture of this image.
Next, if I would like to see here Bullmann images, if I would see the tax.
So I would like to tag a container image.
It's basically like an alias to an image so I can do that.
So it will create, uh, like the same image with different tag.
So I'm going to type padman then tag.
I'm going to get the idea or the image ID here the next I'm going to type HTP then call in twenty twenty
eight.
Genta, as we can see over here right now, we have a tag for this image next.
If I would like to run a container, a container image in the background as demon surface or in the
Dutch mode, I can run the command.
Man, padman run Dashty in order.
What does Dashty in order to run a contender in the background as deman service or any detachment then
the name of the army.
So I'm going to do it for Fedora Genta.
There is also another option, if I would like to run a container in an attractive T.Y. mode in order
to get an access to the ship.
So right now here, we only just have it in the background.
But what this command run dash it.
So this is an interactive TV mode in order to get an access to this container.
Amy Genta.
So, Ellis', we are right now inside this image.
So I'm going to run the command, you name Dasha.
So I would like to show the current version now if I would like to exit from this.
As we can see over here, I'm going to run the command your name dayjob.
We have the same Kolan version because in this container, image is installed up off of the operating
system to ensure the same color board operating the same color vision of the main operating system.
So let's run the command board might be changed.
So far as we can see here.
We don't have any current running containers.
There is another option, if I do, it would dash it will show what is going to show, it will show
the current trend in containers and also the containers that have been previously running, as we can
see over here.
We have previously learning these containers.
Are we?
We exited from them.
So that's why when we use the option and also we can use it with the full notation here.
That's all it will show that these containers have been previously running and x what we're going to
do.
OK, so here, if I would like to, the Dutch.
From a container TDY at the same time.
I'm not going to exit from that container, so I'm going to tie the car and in the keyboard also control
and control accuser.
The container would be still running in the background.
So I'm going to run the command post man run dash 80.
So this is the interactive time mode I'm going to do for the fedora image.
And I hit Enter.
Now we are inside this container.
As we can see here.
This is the version and the name of this container is the fedora.
Now, I'm not going to tiebreaks it if I'm going to die because it means that I'm going to exit from
this container and is not going to be still running.
So what I'm going to do so control speed and control.
Q So I'm outside of this container, but if I'm going to tap the command, put my piece.
You can see here the container is still running.
I can't stop the container if I don't want to put my stop get the container imager to enter.
So perhaps we're done talking about the terrible mistake, put money into it.
We don't have any running container.
So if I would like to run commands inside containers.
OK, so I'm going to I really have that command to see here.
Or appear so contorted and controlled.
You know, I'm going to type the comment put man e so I'm going to execute commands inside.
But before that, let me do good tears to get the image.
The running Amish community support man e x easy.
So I get the container I image here, so I'm going to run the command l special agent here.
As we can see over here right now, I run the command l l inside this container by using the port man
you see then the container id.
Then the comment will do the same thing here, if I would like to give to you name Dasha and we can
get the corner version.
I know what I'm going to do an X if I would like to map a whole sport.
So if I'd like to map a hotspot to a container port in order to access from in order to access the way
to access this container from outside, for example, I want to map a map of six zero six zero two container
Port six zero.
So I'm going to tie it up, put man run.
So Dashti, so this is like the main surface or in the dashboard then dash p.
So as I said, this is I would like I would like to map the whole sport to this one six zero six zero
to a container port, then call sixty 60, then the name of damage to HTP hit enter then if I would
like to show the current container port mapping.
So I am going to type the command port Portman Port Dash a hit enter as we can see over here.
So what we did, we mapped the host for the six zero six zero to a container port 60.
Perfect.
But we need to do one more step.
After we do that.
We need also to open this port in the firewall just in case we don't want to face any problems.
So firewall.
Firewalled dachsie indeed, and dash dash at Port six zero six zero slashed DCP and Dash Dash permanent
hit enter the buzzword.
So let me run that command just in case that is.
How did you get that so far that that one.
We got it from here.
The slash is Tsipi and then after that we do so do fire wall.
That seemed to actually do the reload.
Then we do so do list, that's all you're saying, is that we see that we have the support six zero
six zero.
This is the part that we allow in the fall, in the fall.
So there are some.
OK, let's move to the next concept right now.
Here are some containers that we need to run environmental variables with them.
OK, well, let me let me first FirstRand Maria Debe the container without environmental variables so
I'm going to run the command put man there I'm going to write in Dutch mode Maria DB and I hit enter.
It's going to if I'm going to try to put my stash a first, I'm going to try it without they just I
would like to see if it's this container image it will run or what is going to create an issue.
I don't know if it's going to run, but as I said, that we're going to run it without maybe or see
man piece as we see over here, we don't have the ready.
But lets me check.
He appears she.
OK, that we don't have it, so why we don't have that image, so if I would like to check so I can
do that with the logs and Maria Debe, it will show me the logs that why this container was my image.
So the image is here and we can get the idea here, for example, that map logs to show why did Iran
let me get a majority just to check it didn't work.
Why did it work?
So why it failed to run its run?
Because that we need to use environment variables with this image.
So I tried different ways.
So I tried with the logs in order to see if I can pull more information.
But apparently this container is not running or is not working.
So what we are going to do so potami I'm going to use the board man.
I'm going to stop, I'm going to remove it.
So if we'd like to remove this image R.M. then you get this ID here, copy.
Sometimes it doesn't allow you to do it, but if that's do it without it will say that.
Could you remove it because it's still that is it.
It is being used for that.
So what I'm going to use the option dash for it will force it and delete it so we don't have the morality
here.
So I do have a text file here, my text.
So as I mentioned, there's some container images that we need to run environmental variables with them.
So as you can see here, I know it's a long command, but we do.
We have to do it.
We would like to run an environment variables with a database, with Maria DB or even with my skills.
So put mine run Dashty.
We already know that.
And the name if would like to give a name to this image.
So I give it to our CSA and the board.
I give the port two thousand, two thousand and here the E so the E like is a shortcut for the environment
variables.
As we can see here, we have those environments.
So here the my scale underscore Ruut underscore buzzword, the buzzword and we have another environment
variable also we have here and then we type what, the name of the container.
This is the DBI now, I'm going to run it, so I hit enter.
Is going to try to pull the image.
Sometimes you take a couple of seconds, just wait for it.
I speak English because they have a lot of variables here, environment farmers are using with this
Maria Adibi database.
So, yes.
So as we can see over here, we have the Maria Debe perfect and as we can see here, this is the two
2000 2000 and the name we have, the RISC is perfect.
And I would like to try to put my images.
We can see here, this is the Maria DBI contain her image.
Now, if I would like to see that the image images and with my piesse so we have this one, I assume
I want to delete it.
So I'm going to try to delete this one, the Maria de B, so we have the image.
So here is the Maria De and I'm going to get the container image to see if it's going to allow me or
not.
It will not allow me because what it says that it's running.
So what I need to do is I'm going to run the command, put my stop
and I'm going to get the container it from here.
Ginger, what's to blame?
So one man, just to make sure that we don't have the Maria running anymore.
Perfect.
Wouldn't have it.
Now I'm going to type them.
I put my images, then I'm going to delete this one, put my aim and I'm going to type.
A majority here.
Well, sometimes if it doesn't allow you to use the option dishdasha force and I'm going to read the
comment, man, put my images.
As we can see, we don't have the EDB image anymore.
If you would like to clear all the containers so we can run the command post man or and dash a.
Some of them, it were not because you noticed them first, then you can't remove them.
OK, so that's conclude decision.
Thank you and see you on the next list.