简体   繁体   English

如何指定 IBM Containers 的 IP 进行注册

[英]How to specify IBM Containers' IP to register

I use Secure Gateway to integrate my apps on Bluemix with On-premise resources.我使用 Secure Gateway 将我在 Bluemix 上的应用程序与本地资源集成在一起。 I read the following instruction:我阅读了以下说明:

https://new-console.ng.bluemix.net/docs/services/SecureGateway/sg_023.html#sg_033 https://new-console.ng.bluemix.net/docs/services/SecureGateway/sg_023.html#sg_033

I successfully setup white list for CF apps.我成功地为 CF 应用程序设置了白名单。 But I can't set IP address for IBM Containers(Docker) because I don't know how to specify Containers' IPs to register ip table of Secure gateway.但是我无法为IBM Containers(Docker)设置IP地址,因为我不知道如何指定Containers的IP来注册Secure gateway的ip表。

在此处输入图片说明

Does anyone know how to specify valid ip addresses of IBM Containers?有谁知道如何指定 IBM Containers 的有效 IP 地址?

Regards,问候,

It looks you are specifying the private IP address of your container (172.30.0.5) and what you should do is to bind your container to a public IP address and use this new IP to configure your Secure Gateway.看起来您正在指定容器的私有 IP 地址 (172.30.0.5),您应该做的是将容器绑定到公共 IP 地址并使用这个新 IP 来配置您的安全网关。

Here are the steps to bind your container to a public IP address:以下是将容器绑定到公共 IP 地址的步骤:

1) Optional: request IP (if not done that already) 1)可选:请求IP(如果还没有这样做)

$ cf ic ip request

2) Optional: if you have already requested IP you can use the following command to see which IPs are available for your organization: 2) 可选:如果您已经请求了 IP,您可以使用以下命令查看哪些 IP 可用于您的组织:

$ cf ic ip list

3) Bind an IP address to your container 3)绑定一个IP地址到你的容器

$ cf ic ip bind <ip_address> <container id>

After that you have to wait a few minutes to wait for it to complete and then you can use the public IP address in the Secure Gateway.之后,您必须等待几分钟以等待它完成,然后您才能使用 Secure Gateway 中的公共 IP 地址。

You can do this in the UI as well, just select the pull down menu after the Public IP and select one available from the list:您也可以在 UI 中执行此操作,只需选择公共 IP 后面的下拉菜单并从列表中选择一个可用:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM