azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
2.99k stars 108 forks source link

[FEAT]: podman & rootless containers #152

Open jalberto opened 7 months ago

jalberto commented 7 months ago

Feature Description

I would love to have podman support for:

RlndVt commented 6 months ago

I've given rootful podman some testing and made the following findings:

From here cosmos-server starts and 'works', except for the servapps page, which is just blank. (I'm assuming that that's because a certain 'docker' call to the socket isn't exactly reproduced by the podman socket; if that's the case it's (probably) a podman bug but that would take some digging.

CavaleriOmar commented 2 months ago

I'm trying to install it on my almalinux 9 server (I set up the docker-podman alias, otherwise it's the default almalinux installation), and aside from having to manually create it myself in advance /run/podman/podman.sock and /var/lib/cosmos I followed that string exactly.

The cosmos-server container installation goes perfectly, I run the wizard, it recognizes the (fake) presence of docker, but at the time of installing mongodb, it stops.

I check from cockpit-podman and see that the problem is that the mongodb container won't start:

Failed to start container cosmos-mongo-KxE
crun: cannot set memory swappiness with cgroupv2: OCI runtime error