如何在Docker Windows中查看文件结构?

如何在Docker Windows中查看文件结构?,windows,docker,Windows,Docker,我希望看到类似Docker linux的文件结构使用以下语法: docker exec -it <container id> bash docker exec-it bash 但是,现在我将Windows10与Docker windows一起使用。我尝试了以下语法,但失败了: docker exec -it <container id> bash docker exec -it <container id> sh docker exec -it <c

我希望看到类似Docker linux的文件结构使用以下语法:

docker exec -it <container id> bash
docker exec-it bash
但是,现在我将Windows10与Docker windows一起使用。我尝试了以下语法,但失败了:

docker exec -it <container id> bash
docker exec -it <container id> sh
docker exec -it <container id> //bin/bash
docker exec-it bash
docker exec-it sh
docker exec-it//bin/bash
错误如下:

提供程序:00000000-0000-0000-0000-000000000000]额外信息:{“命令行”:“//bin/bash”,“工作目录”:“C:\App”,“仿真目录”:true,“CreateStdInPipe”:true,“CreateStdOutPipe”:true,“控制台化”:[0,0]}


我认为您需要使用PowerShell,因为容器基于窗口,而不是Linux

docker exec -it <container id> powershell
docker exec-it powershell

我认为您需要使用PowerShell,因为容器基于窗口,而不是Linux

docker exec -it <container id> powershell
docker exec-it powershell

我认为您需要powershell
docker exec-it powershell
我认为您需要powershell
docker exec-it powershell