Docker MongoDB error : Can't call something

I have Dockerized MongoDB and trying to access it from another container running on the same host. But i am getting the following error on the container:

com.mongodb.MongoException$Network: can't call something : /
        at com.mongodb.DBApiLayer$MyCollection.__find(
        at com.mongodb.DB.command(
        at com.mongodb.DB.command(
        at com.mongodb.DB.command(
        at com.mongodb.DB.command(
        at com.mmi.epg.utils.MongoDB.getDbVersion(
        at com.mmi.epg.utils.MongoDB.<init>(
        at com.mmi.epg.utils.MongoDB.getInstance(
Caused by:
        at com.mongodb.Response.<init>(
        at com.mongodb.DBPort.go(
        ... 13 more

Where fcdfd39baedb is the service container which access the mongoDB. I have this line in mongod.conf.

  • Docker rails run server
  • How to define a disk quota for docker containers?
  • How to pass environment variable values into files in the docker container I'm trying to run
  • How to copy files to each user's space in docker
  • Kubernetes docker sample does not expose a port
  • Test docker clusters locally
  • #bind_ip=

    Why did the service use an Internal IP address and had container ID before that to call MongoDB instance ? Am i doing something wrong here ?

    Update: Please find my Dockerfile below

    FROM tveuser/tve-repository:tve-centos
    MAINTAINER karthik.jayaraman ""
    VOLUME ["/data/db"]
    # Expose port #27017 from the container to the host
    EXPOSE 27017
    ADD /scripts/mongodb.repo /etc/yum.repos.d/
    ADD /conf/mongod.conf /etc/
    ADD supervisord.conf /etc/
    RUN yum install -y mongo-10gen mongo-10gen-server &&\
        mkdir -p /data/db
    CMD supervisord -c /etc/supervisord.conf


    I have updated my question. I could telnet the IP and Port number from my service but unable to connect to MongoDB. Would appreciate some help.

  • Get all containers/images using docker-java client library [closed]
  • Boot2Docker for OS X fails to start
  • Running multiple GUIs in Docker using X11 forwarding
  • Switching between docker tags
  • inotifywait with Docker command and variable
  • How to configure dns entries for Docker Compose
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.