Unable to create output file when profilling on Docker with Nsight Systems

Hello, I am trying to profile a python code I have on a docker container. I did as in https://docs.nvidia.com/nsight-systems/#nsight_systems/2019.6.1-x86/08-docker-profiling.htm%3FTocPath%3D_____8 and when I run the command:

nsys profile -o baseline python my_file.py

The following error shows right after executing:

Unable to create output file "/home/darley.barreto/my_folder/baseline.{qdstrm,qdrep,sqlite}": Operation not permitted.

Here’s some info:

Docker conainter:
Linux eee49d881b69 4.4.0-161-generic #189-Ubuntu 16.04 x86_64 x86_64 x86_64 GNU/Linux

Intel® Xeon® CPU E5-2630 v4 @ 2.20GHz
CPU MHz: 2200.000
CPU max MHz: 3100.0000
CPU min MHz: 1200.0000
BogoMIPS: 4401.52
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit

Tesla P100 PCIe 12GB
clock: 33MHz

CUDA Version: 10.1
Driver Version: 418.87.00

Hi darleybarreto,

Do you have write access to the /home/darley.barreto/my_folder directory?

Note that you can use the -o switch to specify an output directory in addition to the output filename.

Bob Knight