Sysinternals / ProcDump-for-Linux

A Linux version of the ProcDump Sysinternals tool
MIT License
2.94k stars 303 forks source link

An error occurred in the docker container : An error occurred while generating the core dump for .NET 3.x+ process #129

Closed QQ897878763 closed 2 years ago

QQ897878763 commented 2 years ago

This error occurs when using procdump in the docker container

root@4adc3af88ecd:/# procdump -p 9

ProcDump v1.2 - Sysinternals process dump utility
Copyright (C) 2020 Microsoft Corporation. All rights reserved. Licensed under the MIT license.
Mark Russinovich, Mario Hewardt, John Salem, Javid Habibi
Monitors a process and writes a dump file when the process meets the
specified criteria.

Process:        dotnet (9)
CPU Threshold:      n/a
Commit Threshold:   n/a
Thread Threshold:       n/a
File descriptor Threshold:      n/a
Signal:     n/a
Polling interval (ms):  1000
Threshold (s):  10
Number of Dumps:    1
Output directory for core dumps:    .

Press Ctrl-C to end monitoring without terminating the process.

[16:19:36 - INFO]: Timed:
[16:19:36 - ERROR]: An error occurred while generating the core dump for .NET 3.x+ process

docker container base images is mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim ,On this basis, I installed ProcDump ProcDump v1.2

QQ897878763 commented 2 years ago

I found the problem. When executing the docker run command, I need to add -- privileged = true