简体   繁体   English

如何在集群中的不同机器之间共享 docker 个图像?

[英]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.

相关问题 如何在kubernetes或docker集群中的不同应用程序之间进行网络隔离? - how to do network isolation among different applications in kubernetes or in docker cluster? 不同主机之间的Docker容器中的RabbitMQ群集 - RabbitMQ Cluster in Docker Container among different hosts 如何清理 linux 机器上的 docker 容器和映像 - How to cleanup docker containers and images on linux machines 如何在不同的机器上运行Docker容器 - How to run docker containers on different machines 在不同的机器上构建 docker 镜像会阻止共享层吗? - Does building docker images on different machines prevent sharing the layers? 在以不同docker-compose文件描述且在不同docker-machines中运行的容器之间创建NFS共享 - Create a NFS share between containers described in different docker-compose files and running in different docker-machines Docker:如何与其他两个图像共享文件? - Docker: How to share files with two other images? 如何在多个Docker主机之间共享图像? - How to share images between multiple docker hosts? 如何在Mac上的不同帐户中共享Docker映像 - how to share docker image in different accounts on mac Docker-如何仅在集群中的所有其他容器中的一个容器中执行调度任务(cron)? - Docker - How to perform a schedule task (cron) in only one container among all others in the cluster?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM