epics-containers / epics-containers.github.io

Kubernetes for EPICS IOCs. Documentation for the epics-containers organization
https://epics-containers.github.io/
Apache License 2.0
15 stars 7 forks source link

Rootless Docker #174

Open gilesknap opened 1 month ago

gilesknap commented 1 month ago

Consider mandating rootless docker for epics-containers. As per https://epics-containers.github.io/main/explanations/rootless.html

gilesknap commented 1 month ago

Also see easier switch between modes https://docs.docker.com/engine/security/rootless/#:~:text=docker%20context%20use%20rootless

gilesknap commented 1 month ago

I've tested rootless docker and --network host. It looks like it does not behave like podman and the PVs are not exposed to the host (although they are exposed to phoebus running in a container with network host).

Demo here https://github.com/epics-containers/example-services/tree/network-host-rootless

For simplicity in that case I think we stick with rootfull dcoker for now - we already have that working and it seems that more thought would be needed to use epics-containers in production without kubernetes. It's probably resolvable - but I don't actually have any customers for non-K8S yet, so will leave it for now.