rootless-containers / usernetes

Kubernetes without the root privileges
https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2033-kubelet-in-userns-aka-rootless
Apache License 2.0
865 stars 58 forks source link

Remove warning about linger from older systemd #313

Closed afbjorklund closed 10 months ago

afbjorklund commented 10 months ago

Older versions of systemd do not include linger information:

$ loginctl list-users --output json 
[{"uid":1000,"user":"anders"}]

So usernetes will always show the warning, even if it is enabled.

+ loginctl enable-linger anders
[INFO] To run docker.service on system startup, run: `sudo loginctl enable-linger anders`
[WARNING] systemd lingering is not enabled. Run `sudo loginctl enable-linger $(whoami)` to enable it, otherwise Kubernetes will exit on logging out.