[英]How to share docker images among different machines in a cluster?
I've just started to maintain a cluster consisting of several machines.我刚刚开始维护一个由多台机器组成的集群。 After deploying the kube.netes on each node, I found out that there is a tedious task for me to load docker images on each machines when I need to use some local mirrors.
在每个节点上部署了 kube.netes 后,我发现当我需要使用一些本地镜像时,我需要在每台机器上加载 docker 个图像,这是一项繁琐的工作。 So here comes the problem, is there any elegant way to spread mirrors among each nodes quickly?
那么问题来了,有没有什么优雅的方法可以在各个节点之间快速传播镜像呢?
At the moment, I just utilize docker save and docker load command to transfer the image files among these machines by scp.目前,我只是利用 docker save 和 docker load 命令通过 scp 在这些机器之间传输图像文件。 I'd like to find out some way that enables me to do once and spread images to all nodes.
我想找到一些方法,使我能够一次完成并将图像传播到所有节点。 Try hard to search for the similar problems, but it seems I cannot get an existing solution for that.
努力寻找类似的问题,但似乎我无法找到现有的解决方案。
The best way to do this is to run a docker registry image inside one of these VMs and upload it to that.执行此操作的最佳方法是在这些 VM 之一中运行 docker 注册表映像并将其上传到该映像。 The other VMs, assuming they have.network access to this VM which runs the registry can download from it.
其他虚拟机,假设它们具有对运行注册表的此虚拟机的网络访问权限,则可以从中下载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.