
我想一次下载一层,并且每个文档都尝试添加固定的–max-concurrent-downloads,如下所示:
docker run --rm -p 8787:8787 -e PASSWORD=blah --max-concurrent-downloads=1 rocker/verse
但这给出了一个错误:
unknown flag: –max-concurrent-downloads See ‘docker run –help’.
我尝试键入docker run –help,有趣的是没有看到选项–max-concurrent-downloads.
由于我使用的是旧Mac,因此我正在使用Docker Toolbox.
在l下,有一个–max-concurrent-downloads选项,但是在键入docker run –help时此选项未显示在我的终端上

如何将一次下载3层的默认值更改为仅一层?
使用工具箱中使用的docker-machine,通常会在docker-machine create命令行上传递引擎标志,例如
docker-machine create --engine-opt max-concurrent-downloads=1
创建完计算机后,您可以按照steps from these answers来修改已经运行的计算机的配置,主要是:
SSH into your local docker VM.
note: if ‘default’ is not the name of your docker machine then substitute ‘default’ with your docker machine name$
docker-machine ssh defaultOpen Docker profile
$sudo vi /var/lib/boot2docker/profile
然后,在该配置文件中,您将添加–engine-opt max-concurrent-downloads = 1.
较新版本的Docker桌面(以及所有Linux安装)通过配置菜单守护程序->变得更加容易.高级,您可以在其中指定daemon.json条目,例如:
{
"max-concurrent-downloads": 1
}
转载注明原文:docker-我可以将–max-concurrent-downloads作为标志传递吗? - 乐贴网