如何同时推送单个Docker图像层? [英] How to push single docker image layers at time?
问题描述
我只想指出:我的互联网连接糟透了。因此,我开始推送新映像,情况如下:
I just want to point out: My internet connection sucks. So I've started pushing a new image, the scenario is something like this:
b57ecdb750f2: Pushing [====> ] 43.57MB/473.9MB
9b7e4da6c261: Pushing [==================================================>] 18.94kB
21d523b40367: Pushed
e18c77c6a7b1: Pushing [==================> ] 106.9MB/285.9MB
5ee5be8f332e: Pushed
78a99e283d45: Retrying in 1 second
98b9d6eacb01: Pushing [=========================================> ] 95.06MB/114MB
96e14acce2fd: Retrying in 1 second
787c930753b4: Pushing [==================================================>] 318.3MB/318.3MB
9f17712cba0b: Pushing [=======================> ] 56.9MB/122.6MB
223c0d04a137: Pushing [==================================================>] 45.18MB
fe4c16cbf7a4: Preparing
在同一时间推送的所有这些层只是在破坏我的互联网连接,不允许我进行导航和码头工人抵制,因为其中许多层上载有错误并一次又一次地重新启动。
是否可以同时上传单个图层?
(顺便说一句,不,不可以,请更改我的ISP或不适合使用我的路由器)
All those layers being pushed at the same time are simply killing my internet connection, not allowing me to navigate and docker boycotting itself as many of those layers are uploaded with errors and restarting again and again.
Is there a way to upload a single layer at time?
(BTW, no, change my ISP or my crappy router is not an option)
推荐答案
在我的Ubuntu中,我在 /etc/docker/daemon.json
中添加了以下内容:
In my Ubuntu, I added /etc/docker/daemon.json
with:
{
"max-concurrent-uploads": 1
}
code> sudo服务docker restart 。就像魅力一样。
and then sudo service docker restart
. Worked like a charm.
这篇关于如何同时推送单个Docker图像层?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!