Docker Windows容器中的Powershell列表过程生成空白列表

我需要得到在Windows容器中运行的dotnet应用程序的进程ID,以便将debugging器附加到它,但是当我尝试列出进程时,我得到一个空列表。

PS > docker exec -it --privileged elated_swartz powershell -Command Get-CimInstance Win32_Process | Select-Object ProcessId, CommandLine ProcessId CommandLine --------- ----------- 

PS版本5.1.15063.483

Docker Client:版本:17.06.0-ce API版本:1.30 Go版本:go1.8.3 Git commit:02c1d87内置:星期五Jun 23 21:30:30 2017 OS / Arch:windows / amd64

Docker Server版本:17.06.0-ce API版本:1.30(最低版本1.24)Go版本:go1.8.3 Git commit:02c1d87内置:星期五Jun 23 22:19:00 2017 OS / Arch:windows / amd64实验:true

在* nix中:

 docker top <container> 

在Windows中使用CMD:

 docker exec <container> tasklist 

使用Powershell:

 docker exec <container> powershell get-process