拉泊码头图像 [英] Pulling docker images

查看:61
本文介绍了拉泊码头图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法手动下载码头图像?



我有很慢的互联网连接,对我来说更好的是获得图像的链接下载它在其他地方更好的互联网速度,



如何获取由docker拉管理的图像的直接URL?

解决方案

有可能得到这个,但让我提出另外两种方式!


  1. 如果您可以连接到具有快速连接的远程服务器,并且该服务器可以运行Docker,则可以在该服务器上 docker pull ,那么您可以 docker save 将图像(及其所有图层和元数据)导出为tarball,并以任何您喜欢的方式传输该tarball。


  2. 如果要传输共享共同基础的多个图像,以前的方法将不会很好,因为最终会传输多个压缩包共享大量数据。因此,另一种可能性是运行私有注册表在可移动计算机(笔记本电脑)上,将其连接到快速网络,拉动图像,将图像推送到私人注册表;然后将笔记本电脑移动到慢网络,并从中拉出图像。


如果没有一个解决方案是可以接受的,不要犹豫,给更多的细节,我们将乐意为您服务!


Is there a way where I can manually download a docker image?

I have pretty slow Internet connection and for me is better to get a link of the image and download it elsewhere with better Internet speed,

How can I get the direct URL of the image managed by docker pull?

解决方案

It's possible to obtain that, but let me suggest two other ways!

  1. If you can connect to a remote server with a fast connection, and that server can run Docker, you could docker pull on that server, then you can docker save to export an image (and all its layers and metadata) as tarball, and transfer that tarball any way you like.

  2. If you want to transfer multiple images sharing a common base, the previous method won't be great, because you will end up transferring multiple tarballs sharing a lot of data. So another possibility is to run a private registry e.g. on a "movable" computer (laptop), connect it to the fast network, pull images, push images to the private registry; then move the laptop to the "slow" network, and pull images from it.

If none of those solutions is acceptable for you, don't hesitate to give more details, we'll be happy to help!

这篇关于拉泊码头图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆