nomad-driver-podman icon indicating copy to clipboard operation
nomad-driver-podman copied to clipboard

Rootless in combination with rootful

Open skoppe opened this issue 1 year ago • 4 comments

I really like running workload in rootless containers.

However, I have not found a way to have both rootless and rootful containers on a single nomad node.

Because some things do need rootful containers, CSI plugins being one example, I see no alternative than switching to rootful.

Is there anything I am not aware about?

skoppe avatar Sep 08 '23 09:09 skoppe

I think something discussed in https://github.com/hashicorp/nomad-driver-podman/issues/84#issuecomment-1004325468 would make sense.

skoppe avatar Sep 09 '23 23:09 skoppe

Hi @skoppe 👋

Thank you for the suggestion, I think that would be a very interesting feature.

Unfortunately, as the comment you link points out, this would be a very heave lift to implement, but I have placed this into our board for further roadmaping and triagging.

lgfa29 avatar Nov 25 '23 03:11 lgfa29

Wouldn’t it be be possible to make the plugin name configurable and declare it twice in the config? Meaning one could spin up a job with:

driver = "podman"

Or

driver = "podman-rootless"

ygersie avatar Feb 13 '24 07:02 ygersie

Wouldn’t it be be possible to make the plugin name configurable and declare it twice in the config? Meaning one could spin up a job with

Yes, I have done exactly that.

It would be great if Nomad can jump on this rootless bandwagon and support it out of the box. Right not I am blocked on things like sidecars and csi mounts not working, and have to run those tasks as rootless.

skoppe avatar May 20 '24 18:05 skoppe