Add podman support to setup.sh#1327
Add podman support to setup.sh#1327erik-wramner merged 4 commits intodocker-mailserver:masterfrom OrvilleQ:podman-support
Conversation
|
I haven't worked much with podman, but isn't it common to create an alias for docker? And wouldn't EDIT: and why do we need podman to run as root? The way I see it the only real advantage with podman is that it can run as a non-privileged user. Would it be possible to run as a non-root user by not using some features (such as fail2ban) or are we stuck with root? |
Podman CLI is compatible with most of docker CLI's features, but podman it's not just an alias for docker. Rootless is great, but the port binding under 1024 must have root privileges, and the default podman version Centos 8 provide is 1.0.5 release around february which is too old for rootless bind ports under 1024. This feature only have minimum support now, and I'll create another pull requset after I test all the advanced feature like manage container with pod like k8s, rootless, and autodeploy. |
|
OK fine. One thing though. I noticed you changed |
|
Done. |
|
Merged, thanks! |
@OrwillT, did you manage to port it to kubernetes YAML? |
|
Thank you for your work @OrvilleQ! 🙌
Is this for within the container or on the host mapping side? The port within the container image shouldn't matter (since it can be mapped at the host), right? I'm still new to podman so it could be that I totally misunderstood the whole topic. 😉
Did you have any time to look into the rootless functionality? |
As what I want in #1322, New setup.sh could automatically decide which CRI should it use and work normally with podman.
I will write a new wiki about how to manually install docker-mailserver with podman CLI and systemd tomorrow to make this function have minimum support.
Then I will slowly write a standalone install&update management script for podman and a kubernetes YAML for autodeploy.