I'm trying to diagnose an issue where a complicated process does not run inside of my Windows Core container. I really need to figure out why it is failing. If this was a VM, I would just pop up the procmon GUI and easily diagnose what files it's looking for but aren't there, but in docker, how can I achieve this?
2 Answers
Process Monitor can be run without GUI to a log file.
Use the parameter backingfile
, and do not forget on first usage to also
include the accepteula
parameter.
You may use the Docker parameter of -v
(-volume) to share a host folder,
where you may store the Process Monitor release files and the resulting
log file.
-
1I marked your answer as correct because is answer on my question. But it seems not work in the docker for windows. If anyone come across this post, look here. I still have not found a solution to the problem. Commented Jan 31, 2018 at 10:35
-
1
-
I did this:
procmon.exe /AcceptEula /Quiet /Minimized /BackingFile c:\temp\log.pml
Commented Jan 31, 2018 at 11:23 -
I saw the post about Hyper-V. I don't know for sure if it using Hyper-V but I'm pretty sure that it has a separate kernel. Thanks anyway and if you will find something I'd love to know. Commented Jan 31, 2018 at 11:24
-
1It should be using Hyper-V by default, unless you changed it by right-click on the docker icon and then on "Switch to Windows containers". You may also ask on the sysinternals forums.– harrymcCommented Jan 31, 2018 at 11:58
procmon
doesn't work on servercore Docker image. You should simply run it on the Host and it will be able to see what you need.
-
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review Commented Mar 30, 2023 at 6:32
-
1@Blindspots this answer is actually also quite good! As correctly mentioned, procmon does not work in the Servercore image (it simply crashes without error). Running it on the Docker Host still prints a lot of information about processes inside the container. Commented Apr 26 at 6:38