gpt4 book ai didi

Docker 在 Windows 上没有拉取进度条

转载 作者:行者123 更新时间:2023-12-02 18:42:56 25 4
gpt4 key购买 nike

在 linux 机器上,或者当我使用 putty 连接到 boot2docker VM 时,我可以在拉图像时看到这个不错的进度指示器:

1491ff176f58: Downloading [===========================>                       ] 1.481 GB/2.721 GB

不幸的是,当从 拉出完全相同的图像时Git Bash (MinTTY) 在 Windows 上
git version 2.5.3.windows.1

docker 版本:
Client/Server: 1.8.2

没有进度条。

知道为什么吗?

最佳答案

Docker Toolbox 1.8.3+ 有解决这个问题的方法:

NOTE: When using interactive commands, prepend winpty. Examples: 'winpty docker run -it ...', 'winpty docker exec -it ...'.

看:
https://github.com/docker/toolbox/blob/v1.8.3/windows/start.sh

对我来说,它呈现进度条,但它将进度条的每个状态打印为新行(而不是像 ssh session 那样替换行)。

更新:

在 Docker Toolbox v1.9.0c 中,此问题已得到修复:

On Windows, use bash and the default terminal for the Docker Quickstart Terminal instead of mintty. This fixes several bugs causing cannot enable tty mode on non tty input or repository name component must match "a-z0-9(?:[._]a-z0-9)*".

关于Docker 在 Windows 上没有拉取进度条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32736255/

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