Docker intercontainer communication
<p>I would like to run <code>Hadoop</code> and <code>Flume</code> dockerized. I have a standard <code>Hadoop</code> image with all the default values. I cannot see how can these services communicate each other placed in separated containers.</p>

<p><code>Flume</code>'s <code>Dockerfile</code> looks like this:</p>

<pre><code>FROM ubuntu:14.04.4

RUN apt-get update &amp;&amp; apt-get install -q -y --no-install-recommends wget

RUN mkdir /opt/java
RUN wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" -qO- \
  https://download.oracle.com/otn-pub/java/jdk/8u20-b26/jre-8u20-linux-x64.tar.gz \
  | tar zxvf - -C /opt/java --strip 1

RUN mkdir /opt/flume
RUN wget -qO- http://archive.apache.org/dist/flume/1.6.0/apache-flume-1.6.0-bin.tar.gz \
  | tar zxvf - -C /opt/flume --strip 1

ADD flume.conf /var/tmp/flume.conf
ADD start-flume.sh /opt/flume/bin/start-flume

ENV JAVA_HOME /opt/java
ENV PATH /opt/flume/bin:/opt/java/bin:$PATH

CMD [ "start-flume" ]

EXPOSE 10000
</code></pre>