有没有“Podman Compose"? [英] There is any "Podman Compose"?
问题描述
我最近发现了 Podman(https://podman.io).有一种方法可以使用 Linux fork 进程而不是守护进程并且不必使用 root 运行,这引起了我的注意.
I recently found out about Podman (https://podman.io). Having a way to use Linux fork processes instead of a Daemon and not having to run using root just got my attention.
但我非常习惯于使用 docker-compose 来编排在我的机器上运行的容器(在生产中我们使用 kubernetes).我真的很喜欢它.
But I'm very used to orchestrate the containers running on my machine (in production we use kubernetes) using docker-compose. And I truly like it.
所以我正在尝试替换 docker-compose.我将尝试保留 docker-compose 并使用 podman 作为 docker 的别名,因为 Podman 使用与 docker 相同的语法:
So I'm trying to replace docker-compose. I will try to keep docker-compose and using podman as an alias to docker as Podman uses the same syntax as docker:
别名 docker=podman
alias docker=podman
能用吗?你能推荐任何其他工具吗?如果可能的话,我真的打算保留我的 docker-compose.yml 文件.
Will it work? Can you suggest any other tool? I really intend to keep my docker-compose.yml file, if possible.
推荐答案
是的,现在可以了,检查 podman-compose,这是一种方法,另一种方法是使用 Kompose.有一篇来自 Jérôme Petazzoni @jpetazzo 的博文:来自docker-compose 到 kubernetes 部署
Yes, that is doable now, check podman-compose, this is one way of doing it, another way is to convert the docker-compose yaml file to a kubernetes deployment using Kompose. there is a blog post from Jérôme Petazzoni @jpetazzo: from docker-compose to kubernetes deployment
这篇关于有没有“Podman Compose"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!