gpt4 book ai didi

windows - 在 Windows 上运行 docker shell

转载 作者:可可西里 更新时间:2023-11-01 09:40:43 25 4
gpt4 key购买 nike

我刚刚安装了 Docker 工具箱 1.9.1(只有 docker 本身加上 Kitematic,因为我已经安装了 VirtualBox 和 Git for Windows)。单击 Docker Quickstart Terminal 图标不起作用,因此我不得不按照建议将其与 C:\Program Files (x86)\Git\bin\bash.exe 相关联。现在一切正常,但我无法运行 docker 命令:

enter image description here

Kitematic 工作得很好,但我需要 shell 。我该如何解决?

最佳答案

检查 docker-machine.exe 的安装位置(或 copy the latest released one in your %PATH% )并使用它,而不是快速启动。
来自常规 C​​MD session :

# find the name of the machine created.
docker-machine ls
docker-machine env --shell cmd <nameOfTheMachine>
docker-machine ssh <nameOfTheMachine>

您要使用的 shell 是由 VirtualBox 管理的 Linux TinyCore boot2docker.iso 镜像提供的,而不是安装在 Windows 主机上的 git-bash

关于windows - 在 Windows 上运行 docker shell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34724712/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com