Bluemix端口绑定 [英] Bluemix port binding

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

问题描述

官方说明指出以下内容: / p>


  ice ip bind< Address> < Your_Container> 

其中<地址>是返回的IP地址。

您的应用程序已设置并可以使用。如果您在Dockerfile中使用ibmliberty作为
,您的基本映像,如上一个示例所示,您可以通过将Web浏览器指向以下方式来访问运行中的IBMWebSphere®Application Server Liberty Profile
服务器: http://:9080 /


我使用sudo ice ip list列出了我的IP。 $ b然后我试图使用三个不同的命令绑定IP:

  user @ comp:〜$ sudo ice bind http: / $ ip / $ containerId 
user @ comp:〜$ sudo ice ip bind http:// $ ip:$ port $ containerId
user @ comp:〜$ sudo ice ip bind http:// $ ip:$ port $ containerName

但是收到相同的错误消息:

 目标是容器云。调用云服务... 
用法:ice [-h] [--verbose] [--cloud | - 本地]
{login,tlogin,ps,运行,检查,日志,开始,停止,重新启动,暂停,取消暂停,rm,图像,搜索,信息,ip,帮助}
...
ice:error:argument subparser_name:invalid choice:'bind'(从'login','tlogin','ps','run','inspect','logs','start' '''''''''''''''''''''''''''''$' / pre>

解决方案

对不起,该团队正在努力更新文档。感谢您的发现!


Official instructions state the following:

    ice ip bind <Address> <Your_Container>

    where <Address> is the returned IP address.

Your application is set up and ready to use. If you used ibmliberty as your base image in the Dockerfile, as in the previous example, you can access your running IBM WebSphere® Application Server Liberty Profile server by pointing your web browser to: http://:9080/

I got the list of my IPs using "sudo ice ip list".
Then I tried to bind the IP using three different commands:

user@comp:~$ sudo ice bind http://$ip/ $containerId
user@comp:~$ sudo ice ip bind http://$ip:$port $containerId
user@comp:~$ sudo ice ip bind http://$ip:$port $containerName

But got the same error message:

Target is container cloud. Invoking cloud service...
usage: ice [-h] [--verbose] [--cloud | --local]
           {login,tlogin,ps,run,inspect,logs,start,stop,restart,pause,unpause,rm,images,search,info,ip,help}
           ...
ice: error: argument subparser_name: invalid choice: 'bind' (choose from 'login', 'tlogin', 'ps', 'run', 'inspect', 'logs', 'start', 'stop', 'restart', 'pause', 'unpause', 'rm', 'images', 'search', 'info', 'ip', 'help')

解决方案

Sorry about that. The team is working on getting the docs updated. Thanks for finding this!

这篇关于Bluemix端口绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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