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
NV_GPU='GPU number' nvidia-docker run --runtime=nvidia -it -v path:path nvcr.io/nvidia/tensorflow:xx.xx
Example: