title: resolve.conf can't be changed - docker-alpine
body: <p><strong>What am I trying to achieve:</strong></p>
  
  <p>I'm starting 2 containers on 2 different instances in AWS.
  I also have a route53 local domain to hold the records of these instances.
  When I ping from 'web' instance to 'db' instance I use "ping db.domain.local" and cannot use only "ping db" (and vice versa).</p>
  
  <p><strong>What I did so far:</strong></p>
  
  <p>Changed the file /etc/resolv.conf from</p>
  
  <pre><code>search domain.local
  nameserver 127.0.0.11
  options ndots:0
  </code></pre>
  
  <p>to (changed the "options")</p>
  
  <pre><code>search domain.local
  nameserver 127.0.0.11
  options ndots:1
  </code></pre>
  
  <p><strong>What I got:</strong></p>
  
  <p>Got it to work.</p>
  
  <p><strong>Error I got:</strong></p>
  
  <p>When I try to change the /etc/resolv.conf file in the Dockerfile or the docker-compose process I get the error</p>
  
  <blockquote>
    <p>can't move '/etc/resolv.confOobcMn' to '/etc/resolv.conf': Resource busy.</p>
  </blockquote>
  
  <p><strong>Workaround for now:</strong></p>
  
  <p>Don't have one because I'm trying to get it to work with the Dockerfile build or the docker-compose up process</p>
  
  <p><strong>My infrastructure is:</strong></p>
  
  <pre><code>Containers OS: Alpine Linux 3.4 based
  Docker: 18.09.2
  Docker-Compose: 1.23.2
  Host OS: ubuntu \ MacOS
  </code></pre>