Run docker nvidia container with limiting GPUS and systemctl using privileged

when trying to run systemctl along with GPU,

systemctl is not working without --privileged and when trying to limit GPUS by providing --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0 --privileged the container shows all the GPUS available inside the container.

if --privileged is not specified --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0 the container shows the desired amount of GPUs