title: Docker how to start container with defined nameservers in /etc/resolv.conf
body: <p>Here is my Dockerfile</p>
  
  <pre><code>FROM javamachine_0.1.2
  MAINTAINER Meiram
  RUN /report/report.sh start
  ENV LANG C.UTF-8 ENV LANGUAGE C.UTF-8 ENV LC_ALL C.UTF-8
  RUN echo "nameserver 192.168.1.100" &gt; /etc/resolv.conf
  COPY resolv.conf /etc/resolv.conf
  EXPOSE 9090
  </code></pre>
  
  <p>when creating container directive docker run --dns also do not change entries in /etc/resolv.conf</p>
  
  <p>How to change entries in /etc/resolv.conf permanently?</p>