Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

BlueMix Docker ports are not being exposed

270003B4FB gravatar image
Question by Driss Amri  (78) | Dec 12, 2014 at 02:24 AM containersdockerfaqibmcloud

With the help of the people here I've been able to successfully get my Docker container containing a Spring Boot application on BlueMix. Now I'm not able to access it.

@LinSun said:

"Hi, thanks for the feedback! We don't currently expose the -p portion for the current time being. The only ports that we expose in containers are : 22,80,443,9080,9443 for public internet access. We are looking at improving this."

So after reading this I made sure my application runs on port 9080 but I don't see any ports listed under ice ps: **-------------------------------------------------------------------------------------------------------------------------------- Container Id Image Id Command Created Status Name Private IP Public IP Priv/Pub Ports


b186629e-901e-4f87 d2cc5071-4a17-4bac Dec 12 09:10 Running linkshorte 172.16.24.69 129.41.248.103
-b508-3df73a365637 -ade2-8183b18d39fc ner
--------------------------------------------------------------------------------------------------------------------------------**

Are there any additional steps needed to expose one of these ports?

Holly_Cummins
XavierVerges

People who like this

  2   Show 2
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
120000HUQM gravatar image ChrisBailey (456)   Dec 12, 2014 at 09:29 AM 1
Share

You won't see the ports listed from "ice ps", but if you've exposed one of 22, 80, 443, 9080 or 9443 in your Dockerfile and your application is running successfully then it should be reachable via the Public IP.

When I go to http://129.41.248.103:9080 if get:

"Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback."

Which implies its working.

270003B4FB gravatar image Driss Amri (78) ChrisBailey (456)   Dec 12, 2014 at 09:54 AM 0
Share

Apparently my work network blocks port 9080. That didn't cross my mind.

Works just fine! Thanks.

4 answers

  • Sort: 
270003B4FB gravatar image
Accepted answer

Answer by Driss Amri (78) | Dec 12, 2014 at 10:51 AM

The ports 22, 80, 443, 9080 or 9443 can be exposed in the Dockerfile.

Issue was on my side, blocked by network firewall.

Comment
XavierVerges

People who like this

  1   Show 2   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270003B4FB gravatar image Driss Amri (78)   Dec 13, 2014 at 09:36 AM 0
Share

@LinSun apparently port 80 is also not working, I switched to 80 but had to revert to 9080 because I couldn't access it.

120000NUQ0 gravatar image LinSun (461)   Dec 13, 2014 at 08:13 PM 0
Share

Thanks @drams for getting back!

Lin

2700021KRY gravatar image

Answer by RalphB (403) | Dec 15, 2014 at 10:13 AM

The ports 22, 80, 443, 9080 or 9443 are currently the only ones that we are exposing.

If you want more ports then please do drop an email to ice@uk.ibm.com requesting which port with an explanation.

Comment
JakeKitchener

People who like this

  1   Show 5   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270006XAAW gravatar image jtamviegas (38)   May 12, 2015 at 04:39 PM 0
Share

hello Ralph, and in case of node.js shall we have to listen on another port, say 8080 and then do the run switch "-p 9080:8080" ?

060000SSB2 gravatar image jnason (15) jtamviegas (38)   May 21, 2015 at 07:51 AM 0
Share

Why not just run your node server listening to one of 80, 443, 9080, or 9443? I don't understand why node would be special in this regard.

270006XAAW gravatar image jtamviegas (38)   May 12, 2015 at 05:16 PM 0
Share

as defined in ice help run : --publish PORT, -p PORT expose PORT ...and actually ice ps lists the port 9080 now, but exposing that port in Dockerfile and making node listen also on it server.listen(9080); we still have no success, please could you give an hint?

270006XAAW gravatar image jtamviegas (38)   May 13, 2015 at 04:16 AM 0
Share

...for some reason it's working now in the morning, maybe there is some delay on the routing enablement :-) thanks anyway

120000NUQ0 gravatar image LinSun (461) jtamviegas (38)   May 20, 2015 at 09:52 PM 0
Share

Yes we did have some delay in network, but it should be fixed now. Thanks.

2700028FGP gravatar image

Answer by JeanFrancoisPuget (1) | Jun 05, 2015 at 12:18 PM

A good reason to expose more ports is if you run an app in your container that listens on default ports that are not the ones you expose. An example is IPython notebook servers that listen on port 8888. Your limitation forces us to create a Docker image in which we modify the IPython Notebook server configuration so that it listens to one of the ice exposed ports.

The fix is either to all any TCP port to be exposed, or to allow a port mapping as is possible with the docker client.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
060001U4XN gravatar image

Answer by crosen (43) | Sep 21, 2015 at 08:47 AM

You can expose any port number when deploying containers (https://www.ng.bluemix.net/docs/containers/container_single_ov.html#container_single_ui). For a single container deployment, you can expose multiple ports whereas a group deployment is limited to exposing a single port.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

42 people are following this question.

Answers

Answers & comments

Related questions

Error using KAFKA TOPICs (KAFKA on docker container) in the Apache Spark service on Bluemix with streaking code. 1 Answer

Calling out to the internet from a docker container 3 Answers

Bluemix Docker ports 1 Answer

Does the Container service support extending other Docker images ? 3 Answers

Bluemix Docker Containers - FIPS Compliant/Security Hardened? 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges