Setting up the prerequisites for the host operating system
As we saw in Chapter 1, Introduction to Container Technology, containers were born to help simplify and create system services that can be distributed on standalone hosts.
In the following sections, we will learn how to run MariaDB and a GIT service in containers while managing those containers like any other service – that is, through Systemd and the systemctl
command.
First, let's introduce systemd, a system and service manager for Linux that runs as the first process on boot (as PID 1) and acts as an init system that brings up and maintains userspace services. Once a new user logs in to the host system, separate instances are executed to start their services.
The systemd daemon starts services and ensures priority with a dependency system between various entities called units. There are 11 different types of units.
Fedora 34 and later has systemd enabled and running by default. We can check if it...