Running powershell or cmd on docker container

安稳与你 提交于 2019-12-11 07:19:26

问题


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:

  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?


回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!