title: Supervisor is not starting up
body: <p>I am following cloudera cdh4 installation guide. </p>
  
  <p>My base file</p>
  
  <pre><code>FROM ubuntu:precise
  
  RUN apt-get update -y
  #RUN apt-get install -y curl
  
  RUN apt-get install -y software-properties-common python-software-properties
  
  RUN add-apt-repository ppa:webupd8team/java
  
  RUN apt-get update -y
  RUN echo debconf shared/accepted-oracle-license-v1-1 select true | \
  debconf-set-selections
  RUN apt-get install -y oracle-java7-installer
  
  #Checking java version
  RUN java -version
  </code></pre>
  
  <p>My hadoop installation file</p>
  
  <p>java_ubuntu is the image build from my base file.</p>
  
  <pre><code>FROM java_ubuntu:latest
  
  RUN apt-get update -y
  RUN apt-get install -y curl
  
  RUN curl http://archive.cloudera.com/cdh4/one-click-install/precise/amd64/cdh4-repository_1.0_all.deb &gt; cdh4-repository_1.0_all.deb
  RUN dpkg -i cdh4-repository_1.0_all.deb
  RUN curl -s http://archive.cloudera.com/cdh4/ubuntu/precise/amd64/cdh/archive.key | apt-key add -
  
  RUN apt-get update -y
  RUN apt-get install -y hadoop-0.20-conf-pseudo
  
  #Check for /etc/hadoop/conf.pseudo.mrl to verfiy hadoop packages
  RUN echo "dhis"  
  RUN dpkg -L hadoop-0.20-conf-pseudo
  </code></pre>
  
  <p>Supervisor part
    hadoop_ubuntu is the image build from my hadoop installation docker file</p>
  
  <pre><code>FROM hadoop_ubuntu:latest
  
  USER hdfs
  RUN hdfs namenode -format
  
  USER root
  
  RUN apt-get install -y supervisor
  RUN echo "[supervisord] nodameon=true  [program=namenode] command=/etc/init.d/hadoop-hdfs-namenode -D" &gt; /etc/supervisorconf.d
  
  CMD ["/usr/bin/supervisord"]
  </code></pre>
  
  <p>Program is successfully build. But namenode is not starting up? How to use supervisor?</p>