--- title: ".NET Docker Configuration" slug: "net-docker-configuration-prefix" description: "Learn how to add our profiler to your Dockerfile & bind host trace directories to guest trace directories for Prefix to read logs." updated: 2022-01-03T20:09:10Z published: 2022-01-03T20:09:10Z canonical: "docs.stackify.com/net-docker-configuration-prefix" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.stackify.com/llms.txt > Use this file to discover all available pages before exploring further. # .NET Docker Configuration Follow the instructions here on how to add our profiler to your Dockerfile. ## Binding the Host Trace directory to the Guest Trace directory To get Prefix to read the traces from your app in docker, you need to use bind-mounts as mentioned in [this article](https://docs.docker.com/storage/bind-mounts/). ## Example: If the host OS is Windows and you have a Linux OS in the container, you need to bind `C:\ProgramData\Stackify\Agent\Log` to `/usr/local/stackify/stackify-dotnet-apm/log` for Prefix to see the logs. **Fixed Logging Directories for .NET traces** Windows: `C:\ProgramData\Stackify\Agent\Log` Linux: `/usr/local/stackify/stackify-dotnet-apm/log` ### To bind these directories We use the ***--mount*** argument for the docker run command as follows: `docker run -it --rm -p 8000:80 \` `--mount type=bind,source="c/ProgramData/Stackify/Agent/Log",target=/usr/local/stackify/stackify-dotnet-apm/log \` `--name dotnet_sample dotnet-apm`