Log in on the Docker SSH console with sudo

Running OpenHABian on NAS or inside Docker as you apparently do is not supported.
Read the docs before installing and asking here.

How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community