title: Docker's container mount folder
body: <p>I am new to Docker and I am trying to simply launch an nginx app.</p>
  
  <p>To do this, I have this DockerFile:</p>
  
  <pre><code>FROM debian:wheezy
  MAINTAINER John Regan &lt;john@jrjrtech.com&gt;
  
  RUN echo "deb http://nginx.org/packages/debian/ wheezy nginx" &gt;&gt; /etc/apt/sources.list.d/nginx.list
  RUN apt-key adv --fetch-keys "http://nginx.org/keys/nginx_signing.key"
  
  RUN apt-get update &amp;&amp; apt-get -y dist-upgrade
  RUN apt-get -y install nginx openssl ca-certificates
  
  ##Delete default repository 
  RUN rm -rf /etc/nginx/conf.d/*
  RUN rm -rf /srv/www/*
  
  ADD conf/nginx.conf /etc/nginx/nginx.conf
  ADD conf/conf.d/default.conf /etc/nginx/conf.d/default.conf
  ADD html/index.html /srv/www/index.html
  
  VOLUME ["/etc/nginx"]
  VOLUME ["/srv/www"]
  
  EXPOSE 80
  EXPOSE 443
  
  ENTRYPOINT ["nginx"]
  CMD []
  </code></pre>
  
  <p>My folder is organise like this:</p>
  
  <pre><code>├── conf
  |   ├── nginx.conf
  |   └── conf.d
  |         └── default.conf
  ├── html
  |   └── index.html
  </code></pre>
  
  <p>The command to launch the container:</p>
  
  <pre><code>sudo docker run -d -p 80:80 -v $pwd/conf:/etc/nginx -v $pwd/html:/srv/www my-nginx
  </code></pre>
  
  <p>But the conatiner stop and I got this message in the log:</p>
  
  <pre><code>nginx: [emerg] open() "/etc/nginx/mime.types" failed (2: No such file or directory) in /etc/nginx/nginx.conf:14
  </code></pre>
  
  <p>I know that the log is pretty clear, but I can't figure out why it doesn't work.</p>
  
  <p>Thanks.</p>