ols-docker-env icon indicating copy to clipboard operation
ols-docker-env copied to clipboard

Rootless support: specify root:root as the user:group

Open stefanpejcic opened this issue 1 month ago • 1 comments

Currently if you set:

user                      root
group                     root

ls will fail to start with:

[*] Initializing..
[*] Checking include sections for all VHosts files..
[✓] openlitespeed.openpanel.org already exists
[*] Updating listener mappings..
[*] Starting LSWS process..
[ERROR] Failed to start litespeed!
[ERROR] Failed to start litespeed!

there must be some check that prevents to set root:root - which is in general a good practise, but does not make sense when running in docker rootless mode, as root in the contianer is already mapped to unprivileged user on the host os. So this is needed to avoid permission issues and ensure the user running docker rootless, also runs lsphp in this container.

Is there a workaround for this? can the check be disabled and how?

stefanpejcic avatar Nov 17 '25 11:11 stefanpejcic

This is by design. I am afraid there's no workaround method.

Code-Egg avatar Nov 20 '25 07:11 Code-Egg