在push的时候报错如题:
在尝试设置daemon.json重启等其他办法无解之后在github中找到如下解决方法完美解决

$ sudo systemctl stop docker
$ sudo nano /etc/docker/daemon.json
{
"max-concurrent-uploads": 1
}
$ sudo systemctl start docker
$ docker push [...]
究其原因
overlay 和 overlay2 的区别:overlay实际上通过硬链接在层和层之间共享文件,而overlay2的每一层都是完全独立的。如果容器启动的话,它会将多层lowerdir 挂载到它的rootfs。
通过上传进度条也可观察:overlay2 为多层同时上传 (类比多线程),overlay为每层单独上传一层完成进行下一层。busy的大概原因想必大家应该就都有所猜测了(类比线程阻塞) 。
还有评论如是说(也可尝试)
ps:题主dockerd执行不了,没有尝试成功,有成功的可以评论交流学习
I’m getting around this by temporarily switching the storage-driver to overlay rather than the default overlay2 (see docs here).
5万+

被折叠的 条评论
为什么被折叠?



