本地注册局 [英] Local Registry

查看:70
本文介绍了本地注册局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我的Windows 2016服务器未连接到互联网。我希望它从我在DMZ中的注册表中提取。我的问题如下:


1)如何告诉Windows上的Docker查看本地注册表并从那里拉出来?


2)我可以在Windows服务器上设置本地注册表吗?


3)如果我必须使用Linux注册表,我该如何在其上存储Windows容器?我之前尝试过但它拒绝接受Windows组件。


我们非常感谢任何帮助,


提前致谢。

解决方案

听起来你想要一个与互联网断开连接的本地注册表?  理想情况下,这个注册表能够保存Windows和Linux容器图像吗?


Docker在这个空间内构建了一些非常棒的工具:


https://docs.docker.com/registry/


或者他们在该文档中提到的docker hub。



如果你对注册表是什么感到困惑,这个帖子可能会有所帮助:


http://stackoverflow.com/questions/34004076/difference-between-docker- registry-and-repository



Stefan在这里有一个使用注册表的例子:


https: //github.com/StefanScherer/dockerfiles-windows/tree/master/registry


Docker还有一个教程实验室:


https:// github.com/docker/labs/tree/master/windows/registry


Hi there,

I have a Windows 2016 server that is not connected to the internet. I would like it  to pull from a registry that I have sitting in a DMZ. My questions are as follows:

1) How do I tell Docker on Windows to look at the local registry and pull from there?

2) Can I setup a local registry on a Windows server?

3) If I have to use a Linux registry, how can I store windows containers on it? I have tried before but it refuses to accept the windows components.

Any help would be greatly appreciated,

Thanks in advance.

解决方案

It sounds like you want to have a local registry that is disconnected from the internet?  And ideally this registry would be able to hold windows and linux container images?

Docker has built some pretty great tools around this space:

https://docs.docker.com/registry/

Or the docker hub they mention in that doc.

If you're confused about what a registry is, this thread may help:

http://stackoverflow.com/questions/34004076/difference-between-docker-registry-and-repository

Stefan has an example of using a registry here:

https://github.com/StefanScherer/dockerfiles-windows/tree/master/registry

Docker also has a tutorial lab:

https://github.com/docker/labs/tree/master/windows/registry


这篇关于本地注册局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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