Skip to content

Commit 7d6f4dc

Browse files
authored
Merge pull request #529 from bgraef/main
new ol podman post using quadlet
2 parents fd34d41 + e946c8a commit 7d6f4dc

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "Use Quadlet with Systemd"
3+
date: 2025-04-01
4+
draft: false
5+
summary: "Learn to run a rootless containers using Podman under systemd with Quadlet on Oracle Linux."
6+
tags: ["ol","lab","tutorial","ol-podman"]
7+
showDate: true
8+
---
9+
10+
## Links
11+
12+
:crescent_moon: [Lab](https://luna.oracle.com/lab/014d85f3-f57c-4730-85a9-165f26531dd6)
13+
14+
:spiral_notepad: [Tutorial](https://docs.oracle.com/en/learn/ol-podman-quadlet)
15+
16+
## Details
17+
18+
Quadlet provides a way to run containers under systemd within Oracle Linux. You define the container to run under a `[Container]` section in a familiar format to the standard Podman command line syntax and leverage all the benefits of the `[Unit]` and `[Service]` options of systemd. The advantage to using systemd to run your containers is that systemd is integrated into the operating system, so you can have containers that start when the system starts or set the order and dependency between a multi-container configuration.
19+
20+
Quadlet replaces an older method Podman used to integrate with systemd. That method consists of creating a container, generating a service file, moving the service file, and then enabling the service. In many cases, users would spend time writing these steps into Bash scripts and then have to maintain those scripts and the generated files. Depending on a user's perspective, Quadlet simplifies this task.
21+
22+
### Objectives
23+
24+
In this tutorial, you'll learn to:
25+
26+
- Create a *.container* file
27+
- Start the new container service
28+
- Test the container
29+
- Update the container
30+
31+
### Prerequisites
32+
33+
- Minimum of a single Oracle Linux system
34+
35+
- Each system should have Oracle Linux installed and configured with:
36+
- A non-root user account with sudo access
37+
- [Podman](https://docs.oracle.com/en/operating-systems/oracle-linux/podman/podman-InstallingPodmanandRelatedUtilities.html#podman-install) and cURL packages
38+
- Cgroup v2
39+
- Access to the Internet
584 KB
Loading

0 commit comments

Comments
 (0)