ols-docker-env
ols-docker-env copied to clipboard
Rootless support: specify root:root as the user:group
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?
This is by design. I am afraid there's no workaround method.