TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Replace Docker Compose with Quadlet and Systemd

23 点作者 slyall3 个月前

2 条评论

inhumantsar3 个月前
I&#x27;ve done this as well and I really wouldn&#x27;t recommend it, especially if you intend to use rootless podman.<p>As the author notes, doing this with rootless podman is a pain in the ass. If you want the containers to start with the system, then you have to have a system target which a user service waits for. The user service then has to reference each of the container quadlets in order to start them. It&#x27;s fiddly and adds new failure points.<p>Even if you&#x27;re not using rootless, the quadlets have to be run through a script which translates them systemd units, so it&#x27;s awkward to use with declarative config management. Quadlet syntax and systemd syntax are also similar enough to be confusing at times.<p>It might be fine if you&#x27;re building host images (eg: immutable dev env VMs). I won&#x27;t be using this in production though, whether that&#x27;s at work or in the homelab.
评论 #43137799 未加载
oriettaxx3 个月前
if there is the need of something between docker-compose and k8, why not Docker Swarm?