gpt4 book ai didi

docker - 如何一次推送单个 docker 镜像层?

转载 作者:IT老高 更新时间:2023-10-28 12:40:57 25 4
gpt4 key购买 nike

我已经开始推新图了,场景是这样的:

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
}

然后sudo service docker restart.

关于docker - 如何一次推送单个 docker 镜像层?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44938902/

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