All right, let me tell you about quadLATS.
QuadLATS were developed to run containers in system D
in a declarative way.
It's a new approach.
In earlier versions, you would use podman generate.
That's not used anymore.
While using quadLATS, you create a container name
dot container system D unit file.
And you put that unit file in one
of the following directories.
User share container system D, or etc container system D,
or in your home directory dot config
slash containers slash system D.
Now, the most common directory where
you are going to put your quadLATS
is the last one, the home directory one.
Because remember, we are talking about rootless containers
in general.
The unit file that you are going to use
is a containers section.
And that defines a container image and a command
that you want to run.
I've put a simple example in the course Git repository.
You should check it out.
You should also check out documentation,
which is in podman dash system D dot unit.
You will find some useful information in there.
So how does this work?
Well, first, you will need to create a dot container
file in the appropriate location.
And notice that there is no automated way
to generate the dot container file.
Next, you need system CTL minus minus user daemon reload.
That will run the system D generator.
And this part picks up the dot container file
and generates container name dot service.
Optionally, verify the generated file
using usual lipexec podman quadLAT minus dryrun minus user.
There is no need to enable the service unit that
was generated based on the quadLATS.
It will be picked up automatically.
Let me show you.
OK, let me start by creating this directory structure, which
is in home directory dot config slash containers slash system
D. And then I'm going to copy my example container file.
Shall we have a look at it?
So RHCSA 10 mysleep dot container
is showing what it's looking like.
It's a pretty simple file where we have a container entry.
And in the container entry, we point to the image
and we run a command.
So this is running the sleep 1000 command
based on UBI 9 minimal.
It has an install section.
And in the install section, we have the wanted by.
And the most important part is that the wanted by
is default dot target.
So I need to copy this file into the directory
that we just created, the dot config slash containers
slash system D directory.
Then I'm going to use systemctl minus minus user daemon
reload.
That will pick up the dot container file
and create a service file based on that.
So now I can use systemctl minus minus user start
mysleep dot service.
And that will start it.
And if I use status on it, then we
can see that it's active and that it is running
and that it corresponds to the home student dot config
container system D mysleep dot container, which is
a file that has been generated.
And that's all you need to know in order
to work with quadLATS.