this post was submitted on 15 Mar 2025
53 points (93.4% liked)

Selfhosted

45404 readers
770 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

From what I have seen, rootless podman seems to take more effort (even if marginal) than rootful one. I want to make a more informed decision for the containers, so I would like to ask.

  1. What is a rootless podman good for? How much does it help in terms of security, and does it have other benefits?
  2. One of the benefits commonly mentioned is for when container is breached. Then, running container on sudo-capable user would give no security benefits. Does it mean I should run podman services on a non-privileged user?

Thank you!

you are viewing a single comment's thread
view the rest of the comments
[–] cmgvd3lw@discuss.tchncs.de 29 points 2 weeks ago (12 children)

One of the main advantage of podman is that, it respects the firewall rules. Docker don't do that. Also having rootless podman means if somehow the container went rogue, it cannot have access to your root directory and perform malicious actions.

Also podman is a drop in replacement for docker. It does not need much configurations to setup. If you need compose, you might need to install podman-compose as well.

[–] Railcar8095@lemm.ee 8 points 2 weeks ago (5 children)

I always hear podman is a drop in replacement, but every time I try most of my stack doesn't work. Permissions seem to be the issue most of the times, even when I create new volumes. I will try again in a few years probably, but I'm not holding my breath

[–] asap@lemmy.world 2 points 2 weeks ago* (last edited 2 weeks ago) (3 children)

You need to add :Z to the end of your volume lines, or lowercase z for shared volumes.

I'm running 50+ containers, probably most of the popular ones, and all working fine.

[–] Railcar8095@lemm.ee 2 points 2 weeks ago (1 children)

You made me try again, and I again failed. For example, Navidrome has this issue: https://github.com/navidrome/navidrome/issues/2967

It seems aside from :z i have to remap the user namespace, which I remember trying in the past too and getting mixed results (some worked, some still didn't). I get this is not a podman issue (also affects rootless docker), but given the default behavior of docker is root, I am not having this issue.

The others didn't seem to fail at creation, which is a good thing, but I recall some had issues interacting with each other (files created by one not being readable by another and such). Might try with some other navidrome image (or equivalent subsonic server) but unless it's as easy as adding :z, I don't think ill be able to continue Thanks in any case :)

[–] asap@lemmy.world 1 points 2 weeks ago* (last edited 2 weeks ago)

Here's my Navidrome config. This is running on uCore version of CoreOS, with rootless Podman and SELinux. I made no configuration changes to Podman out-of-the-box, and this is the full compose file.

i have to remap the user namespace

Note: I have not done this. What are you running Podman on? Perhaps there is some config issue with the host, since you're having issues with many containers?

To be fair, maybe just go with docker if it's causing that much pain. But again, mine is working OOTB without making any changes to the Podman setup on ucore, and using the config below.

services:
  navidrome:
    image: deluan/navidrome:latest
    container_name: navidrome
    ports:
      - "3015:4533"
    restart: unless-stopped
    environment:
      # Optional: put your config options customization here. Examples:
    volumes:
      - ./data:/data:Z
      - ./config.toml:/navidrome.toml:Z
load more comments (1 replies)
load more comments (2 replies)
load more comments (8 replies)