【问题标题】:How can I see the file structure in Docker-Windows?如何在 Docker-Windows 中查看文件结构?
【发布时间】:2019-10-23 03:48:22
【问题描述】:

我想看看像 Docker-linux 这样使用以下语法的文件结构:

docker exec -it <container id> bash

但是,现在我正在使用带有 Docker-windows 的 Windows10。我尝试了以下语法但失败了:

docker exec -it <container id> bash
docker exec -it <container id> sh
docker exec -it <container id> //bin/bash

类似错误:

提供者:00000000-0000-0000-0000-000000000000] 额外信息:{"CommandLine":"//bin/bash","WorkingDirectory":"C:\App","EmulateConsole":true,"CreateStdInPipe ":true,"CreateStdOutPipe":true,"ConsoleSize":[0,0]}

【问题讨论】:

  • 我觉得你需要powershell docker exec -it &lt;container id&gt; powershell

标签: windows docker


【解决方案1】:

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

docker exec -it <container id> powershell

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-25
    • 2018-11-28
    • 1970-01-01
    • 1970-01-01
    • 2022-12-04
    • 2010-12-21
    相关资源
    最近更新 更多