docker - Bluemix IBM Container with Mongodb connection failed -


i've been trying prepare image containing mongodb in docker container following dockerfile:

# dockerizing mongodb: dockerfile building mongodb images # based on ubuntu:latest, installs mongodb following instructions from: # http://d...content-available-to-author-only...b.org/manual/tutorial/install-mongodb-on-ubuntu/  # format:    repository[:version]       ubuntu:latest  # format: maintainer name <email@addr.ess> maintainer name <my@gmail.com>  # installation: # import mongodb public gpg key , create mongodb list file run apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7f0ceb10 run echo "deb http://r...content-available-to-author-only...b.org/apt/ubuntu     "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee/etc/apt/sources.list.d/mongodb-org-3.0.list  # update apt-get sources , install mongodb run apt-get update && apt-get install -y mongodb-org  # create mongodb data directory run mkdir -p /data/db  # expose port 27017 container host expose 27017  # set usr/bin/mongod dockerized entry-point application entrypoint ["/usr/bin/mongod"] 

after running locally, works upon running on bluemix , assigning public ip adress, connection attempt results following error:

$ mongo --host 134.168.37.176 mongodb shell version: 2.6.3 connecting to: 134.168.37.176:27017/test 2015-11-01t17:24:10.557+0100 error: couldn't connect server 134.168.37.176:27017 (134.168.37.176), connection attempt failed @ src/mongo/shell/mongo.js:148 exception: connect failed 

this image of container configuraion in bluemix

could tell me why i'm not able make connection? doing wrong?

the error having because port 27017 not open in ibm containers. suggest open support ticket ibm bluemix support , ask port opened or can check ibm bluemix support team alternative open port can use well.

you can open support ticket in following link:

http://ibm.biz/bluemixsupport


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -