title: uwsgi running in Docker can't find initializtion file
body: <p>I use Ubuntu 14.04 and Docker 1.0.1. I have a container that contains of python 2.7.6 and uwsgi 2.0.10. I created the Dockerfile:</p>
  
  <pre><code>FROM romeus/python 
  MAINTAINER Me &lt;my email&gt;
  ENV REFRESHED_AT 2015-03-17
  
  RUN pip install uwsgi
  RUN pip install Django 
  
  RUN mkdir -p /var/www
  RUN mkdir -p /var/conf 
  
  VOLUME ["/var/www"]
  ADD uwsgi.conf /var/conf/
  
  
  CMD ["uwsgi", "--ini", "/var/conf/uswgi.conf"]
  </code></pre>
  
  <p>Below I place my uswgi.conf:</p>
  
  <pre><code>[uwsgi]
  http-socket = 0.0.0.0:8080
  wsgi-file = /var/www/test.py 
  processes = 4
  threads = 2
  stats = 0.0.0.0:8081
  </code></pre>
  
  <p>When I log in to container:</p>
  
  <pre><code>docker run --rm -it -p 8080 -p 8081 -v /home/hedin/projects/business
  /project/test/www:/var/www/ romeus/django /bin/bash
  </code></pre>
  
  <p>And then run uwsgi with ini-file:</p>
  
  <pre><code>uwsgi --ini /var/conf/uwsgi.conf
  </code></pre>
  
  <p>It's starts and works as expected.</p>
  
  <p>But when I run it:</p>
  
  <pre><code>docker run --rm -it -p 8080 -p 8081 -v /home/hedin/projects/business/project/test/www:/var/www/ romeus/django
  </code></pre>
  
  <p>It's issues an error:
  realpath() of /var/conf/uswgi.conf failed: No such file or directory [core/utils.c line 3607]</p>
  
  <p>Does anybody knows what's a problem ?</p>
  
  <p>P.S. I changed a tail of my Dockerfile:</p>
  
  <pre><code>COPY uwsgi.conf /var/conf/
  
  VOLUME ["/var/www"]
  
  CMD ["strace", "-f", "uwsgi", "--ini", "/var/conf/uswgi.conf"]
  </code></pre>
  
  <p>This is last few lines of strace's output:</p>
  
  <pre><code>lstat("/var/conf/uswgi.conf", 0x7fff9dcc6a40) = -1 ENOENT (No such file   or directory)
  lstat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
  lstat("/var/conf", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
  lstat("/var/conf/uswgi.conf", 0x7fff9dcc59e0) = -1 ENOENT (No such file or directory)
  write(2, "realpath() of /var/conf/uswgi.co"..., 94realpath() of /var/conf/uswgi.conf failed: No such file or directory [core/utils.c line 3607]
  ) = 94
  exit_group(1)                           = ?
  +++ exited with 1 +++
  </code></pre>
  
  <p>So it seems like file doesn't exists at the command run time.
  Any thoughts ?</p>