问题
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.
I ran following commands:
docker container ls - to list conatiners
docker exec -i -t a1da40af6b3c powershell
But nothing happens (as shown in the image). Am i missing anything?
回答1:
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.
来源:https://stackoverflow.com/questions/53999890/running-powershell-or-cmd-on-docker-container