Check out example codes for "runner dotnet trace inside docker container". It will help you in understanding the concepts better.
Code Example 1
dotnet tool install --global dotnet-trace
export PATH="$PATH:/root/.dotnet/tools"
Learn ReactJs, React Native from akashmittal.com