Docker Community Forums

Share and learn in the Docker community.

Unable to access Kibana web UI and Elasticsearch running in docker container from host machine

I build a docker image from dockerfile with ubuntu as the base. I manually install elasticsearch kibana airflow in it. The ip of my container is . I am able to access the Airflow’s Web UI from the host machine at . However cannot access Kibana or elasticsearch at and respectively.

The following is the excerpt from my dockerfile for installing elasticsearch:

RUN wget -qO - | apt-key add -
RUN echo “deb stable main” | tee -a /etc/apt/sources.list.d/elastic-6.x.list
RUN apt-get update
RUN apt-get install elasticsearch