Nsight Systems Initialization Errors

I am on an AGX Xavier and currently I am trying to profile inside a Docker container. I managed to get it so
nsys status -e displays:
Sampling Environment Check
Linux Kernel Paranoid Level = -1: OK
Linux Distribution = Ubuntu
Linux Kernel Version = 4.9.201-tegra: OK
Linux perf_event_open syscall available: OK
Sampling trigger event available: OK
Intel(c) Last Branch Record support: Not Available
Root privileges: Yes
Kernel module: Available
Sampling Environment: OK

But when I try to utilize nsys profile, it says Nsight Systems cannot be initialized properly.
Is this an error or is there something else I need to include in the docker files.

Thank you for reporting this issue. For us to better understand your environment, could you please also help with the following information:

  • Version of JetPack and Nsight Systems
  • Which Docker image are you working on top of? (Such as ubuntu:latest for example.)

Two different ideas to try:

  • Run Docker in privileged mode: docker run --privileged ...
  • Disable CPU sampling: nsys profile -s none ... (in non-privileged container)