Hello, everyone, in this.
I'm going to show you how to add resistance stories to container images.
There are two methods or ways to add resistance stories to contain or images.
I'm going to start with the first method.
So first, I'm going to create a new directory and I'm going to call this directory storage, which
inter alia, old storage.
As we can see here, Root is the owner and the group.
So what I'm going to do, I need to change the owner and glue for this directory.
So so do change on them.
To John Galán, John and the name of the directory storage and is the lead storage center.
As you can see here, we have changed the owner and group for this directory.
So second, I'm going to map this directly and the host to a directory inside the container.
So I'm going to run the command post man run.
Then the option.
Dash, dash, briefly.
Then dash it so the dash dash privileged.
Why we need to use this option in order to bypass or ignore the clinics, if in case there is even a
set to enforcing and we already know that it's this is the interactivity.
Why mode and for the Dash V, we need to use this option in order to look look at the volume on the
host and on the volume of the container so that this is the option that I was talking about.
Then we need to ride the bath, which is the directory storage, then SLI, then storage before we going
to do the slash because we were going to mount this directory to another directory inside the container.
So calling then slash storage.
So I'm going to create another directory with the same name and what inside the container and the image
that I'm going to use, I'm going to use Fedora, I'm going to this this image then slash pain, because
after I'm going to run this one, I would like to get an access to the Basche slash slash bash.
Then I hit enter.
Perfect right now, as we can see over here, we are inside the container, so I can double check ATC
slash, always release, hit enter.
We are inside this container and I can type in less.
And let's see, we have the stories here.
So he raised storage so he can go inside this unless there is no.
I'm going to add a couple files here.
If one.
If two if.
If three and a hit, enter Alice, as we can see here, we have three X files or files inside this directory
and we are ready right now inside the container.
So what I'm going to do right now, I'm going to hit control to control Q.
I don't want to exit from the container, so p put my purse, as we can see over here.
The container is still running.
I just, you know, through the screens here, the container is still running.
What I'm going to let me to double check so we can go to the store.
We are now on the machine and the user, John, saw storage just to double check that we have the text
files.
As we can see right now, we have F1, F2 and EF three.
Let me add also three five.
So if for if five and F six to enter else we have six fires now.
OK, I'm going to run the command, put my purse.
So it is the container image and I'm going to run the I'm going to execute a command
and then execute it so I can't get either the name if I want or I can't get the container ID.
That's when you get the container ID here
first.
Then what.
Let's just run unless the shell or I want to maybe do the bean bags, I kind of go inside the container
into perfect.
We are inside the container so stotish it into Alice.
As we can see over here we have this three new Fites.
So control feed and control Q p q
well we already outside.
Perfect.
So I'm going to clean the screen.
Now I'm going to show you the second MyFord.
So I just already show you that are the first.
Now let's move on to the second method.
So I'm going also to create a new jet, actually.
So this time I'm going to create a directory, make a directory, and I'm going to call this directory
share.
I've never asked for any special share, as we can see here, we have the robot is the owner and the
group.
We need to change that.
So change.
Change on to John, John to this file.
Perfect.
We have changed the owner and the group for District three.
Now what I'm going to do, I'm going to run the command post, man, run dash eite.
And, Ashleigh, I already explained about the dash it so that it is an extra active duty y mode and
the Dash V, you know, the dash fee dash feeds in order to locate the volume on the horse and on the
value.
On the volume of the container, so there is there is one difference, I know it's kind similar to the
to the first method, but here we go.
And I'm not going to use the dash.
That's perfect.
So I'm going to tie up the share file so the share shareholders share directly then colon slash.
And I'm going to call this also share, then call an uppercase sit where we need to use that in order
to pass and ignore the index in case of the Aislinn Index is index is set to enforcing.
So this is kind of the only difference.
Before we didn't use the call and said we use the dash dash privileged and this time I'm going to use
this image up until then, slash bin, slash slash brush.
I want to go inside, I'm going to pull it and we can go inside this.
Image.
Perfect right now, so can't ATC signal its release, as we can see here, it's a container.
It's supposed to contain our image.
Now what I'm going to do so let's go inside the shower just to double check.
Yeah, we have this file ellis'.
OK, so touch EF1.
I'm going to change this.
So do you want these two and three?
Alice, now I'm going to take control to control.
We are outside of the container.
However, we didn't close the container of the container still running see here, because I what I did
on the keyboard inside, I press control, speed and control keel.
And let's go now inside the shared folder.
It is perfect.
We have three files, so I'm going to add these for these five and six enter and I know what I'm going
to do.
Put man.
But maps, it's just the image or the content of it for Ubuntu.
I'm going to go with this one and I'm going to execute the commands or executed shyte.
So the containerised here, the secretary for a Ponto, then slash bean slash bash enter unless we have
the share.
Here we go inside that folder.
Alas, as we can see here, we have the three fires here, the 45 and the six.
Next, I'm going to show you an example.
How to?
To show an example, how to add persistent stories to my Eskil or Maria DBE.
So I just what they did in the last two methods, I just show you how to mount or to add in storage
on the local machine to to the container.
I have a file.
We're going to do the same steps.
Maybe the first four.
Let's do so.
I'm going to to create a directory here and I'm going to call that directory database as Dash Dash Helda
database.
So we going to change this one, change the owner groups who do change on to John and John to database.
Now we're going to run down this duck-billed, as we can see over here.
So John is the owner and the group for this directory.
And so we as we can see over here, since we get to do, as I said, that I want to add a persistent
Stotish to my skill on Maria DBI.
I have a text file here for my skill.
Uh, so I'm going to use this file to either process a story.
This is inside my local machine and here inside, this is what I'm going to do inside Maria EDB.
However, as we can see here, over here for the permission for the group, we don't have rights.
This is a database and also for others.
So I suggest that we should change the mode or the permission here to add a write permission to this
directory.
So so do change mode.
Change mode.
So I will care less w then O plus W to the date of his return to the less old and storage the database.
Yeah, so we give her all right permission to that, so as we can see over here, this is the command
that we need to run right now.
So it's an order commands around Dashti.
So this is the demon surface or the Dutch mode and the name.
So I'm going to add a name and a Dash V.
We're going to use the second method, if you guys remember the second method here.
So this in order to ignore it, if it's enforcing and the dash, it's up to you if you want to use a
port.
No, I want to use it two or three thousand four from the mapping from the localhost to the to the container.
Then he is the environment variables.
So we have one to do so before each environment environment variable.
We need to use the dashi, then equal the the variable that we want to use.
And so I'm going to run this command, as we can see here.
And this is the image or the container image.
So covid this one, paste it.
I'm going to run it right now.
So the words were just for a few seconds in order to pull the image, but everything is OK after we
going to pull the image and get the image there.
So what we're going to do, we're going to execute a command order.
So I'm going to clear the screen here.
So put my foot forward and execute, then dash I and my skill.
I'm sure that somebody will ask me said, how did you get this?
Because I already declared when I ran the previous command that I want the name of this container image
and I want to call it it's my skill and slash pain.
Slash, smash hit enter.
We are right now inside this container.
So it is.
And where is that folder.
OK, I will go here.
See.
Oh yeah.
It's here that it is.
It is so touch.
I'm going to call this one if file one file to attempt to release control Peter control queue.
So we get out of that database.
It can do that if you want to clear the screen.
So it is DeShields deed in storage here.
Uh, can you know that this is where storage.
Let's go inside not storage.
Sorry, database database at least as we can see here.
We have to you Fites.
That's conclude decision.
Thank you.
See you in the next.