mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-22 08:16:29 -05:00
New post
This commit is contained in:
parent
c9456f53ca
commit
221f0da097
2 changed files with 41 additions and 0 deletions
39
content/blog/migrating-docker-compose-podman-quadlets.md
Normal file
39
content/blog/migrating-docker-compose-podman-quadlets.md
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
---
|
||||||
|
title: "Migrating from Docker Compose for Podman to Quadlets"
|
||||||
|
date: 2024-05-09T18:53:51-04:00
|
||||||
|
draft: false
|
||||||
|
tags: []
|
||||||
|
math: false
|
||||||
|
medium_enabled: false
|
||||||
|
---
|
||||||
|
|
||||||
|
Technology never stagnates. There's always people working hard to improve the current status quo. While it might be annoying at times, it does keep life exciting.
|
||||||
|
|
||||||
|
The latest change, is that for systems where I use Podman containers, I now no longer use docker-compose but instead rely on Podman Quadlets which are managed by systemd. This means one less dependency on the docker toolchain, and we all accepted the systemd future by now right?
|
||||||
|
|
||||||
|
Mo wrote a [blog post](https://mo8it.com/blog/quadlet/) earlier this year outlining how they work. I won't reiterate that great work so I encourage you to check it out. Instead, I'll paste one systemd configuration file of a podman container for future me to easily reference.
|
||||||
|
|
||||||
|
Hedgedoc Container file at `/etc/containers/systemd/hedgedoc.container`
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[Container]
|
||||||
|
ContainerName=hedgedoc
|
||||||
|
HostName=hedgedoc
|
||||||
|
Image=lscr.io/linuxserver/hedgedoc:1.9.9
|
||||||
|
AutoUpdate=registry
|
||||||
|
Volume=/home/rozek/Volumes/hedgedoc/config:/config
|
||||||
|
EnvironmentFile=/home/brozek/Volumes/hedgedoc/docker.env
|
||||||
|
IP=10.77.1.91
|
||||||
|
Network=rozeknet
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Requires=hedgedoc_database.service
|
||||||
|
After=hedgedoc_database.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
```
|
||||||
|
|
|
@ -9,6 +9,8 @@ tags:
|
||||||
title: Rootless Docker-Compose with Podman
|
title: Rootless Docker-Compose with Podman
|
||||||
---
|
---
|
||||||
|
|
||||||
|
*Note: Nowadays, I prefer to use [Quadlets](/blog/migrating-docker-compose-podman-quadlets/)*
|
||||||
|
|
||||||
One of the benefits of Podman over Docker is that it can run daemon-less and without root. However, `docker-compose` is by far my favorite way to create and maintain containers. Luckily, the Podman folks emulated the Docker CLI so that `docker-compose` works well with Podman!
|
One of the benefits of Podman over Docker is that it can run daemon-less and without root. However, `docker-compose` is by far my favorite way to create and maintain containers. Luckily, the Podman folks emulated the Docker CLI so that `docker-compose` works well with Podman!
|
||||||
|
|
||||||
To install:
|
To install:
|
||||||
|
|
Loading…
Reference in a new issue