dockerasp.net-web-apidocker-for-windowsdocker-execdocker-desktop

Running powershell or cmd on docker container


I want to check the content of my docker container. I want to run a powershell or command prompt inside container so I can list directories.

This container image is hosting ASP.NET Web API application using ASP.net 4.6.1 framework.

enter image description here

I ran following commands:

  1. docker container ls - to list conatiners
  2. docker exec -i -t a1da40af6b3c powershell

But nothing happens (as shown in the image). Am i missing anything?


Solution

  • ISE hosted powershell does not work properly with a bunch of things. So try to do this either inside standalone powershell console or use VS Code.