我已经开始推送新的镜像,场景是这样的:
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
所有这些同时推送的层只会破坏我的互联网连接,不允许我导航和 docker 抵制自身,因为其中许多层上传时出现错误并一次又一次重新启动。
有没有办法一次上传单层?
在 Ubuntu 中,打开/etc/docker/daemon.json
并添加:
{
"max-concurrent-uploads": 1
}
then sudo service docker restart
.
对于 MacOS,请转到 Docker 设置:
然后加"max-concurrent-uploads": 1
在“Docker 引擎”部分:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)