Containers are now ubiquitous, and for good reason; the portability and productivity enhancements they provide have made them a standard component in HPC and many other computing fields. The NVIDIA Nsight family of developer tools for analyzing performance of CUDA applications are supported in container environments.
For more information about the environmental landscape and Nsight Systems, see Using NVIDIA Nsight Systems in Containers and the Cloud.
This post contains similar information for using Nsight Compute in container environments. Nsight Compute is specifically designed to provide detailed performance analysis of CUDA kernels running on the GPU.
Read the full tutorial on the NVIDIA Developer Blog.