简体   繁体   English

安装后在IBM Container上打开端口

[英]open port on IBM Container after installation

I have deployed IBM Bluemix container with a dockerfile. 我已经使用dockerfile部署了IBM Bluemix容器。 In this dockerfile Expose one port. 在此dockerfile中公开一个端口。 say port 22. 例如说22号港口

Is it possible to open another port without deploying to a new container. 是否可以在不部署到新容器的情况下打开另一个端口。 So is it possible to open another port on the already deployed container. 因此可以在已经部署的容器上打开另一个端口。 say port 2812. 例如2812端口。

docker containers ports on Bluemix can be managed during container building and during the run command. 可以在容器构建期间和运行命令期间管理Bluemix上的docker容器端口。 Moreover I suggest you to use the option -p if you are using "cf ic" or "docker" or "ice" client from command line with the same ports listed in dockerfile expose setting. 此外,如果您从命令行使用“ cf ic”,“ docker”或“ ice”客户端,并且使用dockerfile暴露设置中列出的相同端口,则我建议您使用选项-p。 Once a container is started you cannot add another port "on the fly" 容器启动后,您将无法“动态”添加另一个端口

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

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