title: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations
body: <p>I have built one docker image <code>docker build -t ds_backend .</code> with all configuration mentioned after the error below.</p>
  <p>While trying to run the image using <code>docker run ds_backend</code> and its giving following error.</p>
  <pre><code>/usr/lib/python2.7/dist-packages/supervisor/options.py:461: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a &quot;-c&quot; argument specifying an absolute path to a configuration file for improved security.
    'Supervisord is running as root and it is searching '
  2020-08-27 01:53:36,963 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
  2020-08-27 01:53:36,966 INFO supervisord started with pid 1
  </code></pre>
  <p>Here is my configuration files</p>
  <p>Dockerfile</p>
  <pre><code>FROM python:3.6
  
  MAINTAINER Dockerfiles
  
  RUN mkdir /trell-ds-framework
  WORKDIR /trell-ds-framework
  ADD . /trell-ds-framework/
  RUN python3 setup.py bdist_wheel
  # install uwsgi now because it takes a little while
  RUN pip3 install uwsgi
  # copy over our requirements.txt file
  # upgrade pip and install required python packages
  RUN pip3 --no-cache-dir install -U pip
  RUN apt-get install -y ca-certificates
  RUN apt-get update &amp;&amp; \
      apt-get install -y software-properties-common &amp;&amp; \
      rm -rf /var/lib/apt/lists/*
  # RUN add-apt-repository universe
  RUN apt-get update
  RUN apt-get install -y supervisor
  RUN apt-get install -y ca-certificates supervisor
  COPY supervisor_app.conf /etc/supervisor/conf.d/supervisord.conf
  RUN apt-get update &amp;&amp; apt-get -y install cron
  RUN pip3 --no-cache-dir install -r requirements.txt
  RUN python3 -c &quot;import nltk;nltk.download('stopwords')&quot;
  # setup all the configfiles
  # RUN echo &quot;daemon off;&quot; &gt;&gt; /etc/nginx/nginx.conf
  # RUN /usr/sbin/nginx -g &quot;daemon off;&quot;
  COPY nginx_app.conf /etc/nginx/sites-available/default
  COPY supervisor_app.conf /etc/supervisor/conf.d/
  
  
  # add (the rest of) our code
  
  EXPOSE 80
  # CMD [&quot;supervisord&quot;]
  CMD [&quot;/usr/bin/supervisord&quot;]
  </code></pre>
  <p>supervisor_app.conf</p>
  <pre><code>[supervisord]
  nodaemon=true
  user=root
  
  
  [program:uwsgi]
  command = /usr/local/bin/uwsgi --ini /trell-ds-framework/uwsgi.ini
  stdout_logfile=/dev/stdout
  stdout_logfile_maxbytes=0
  stderr_logfile=/dev/stderr
  stderr_logfile_maxbytes=0
  
  [program:nginx]
  command = /usr/sbin/nginx -g &quot;daemon off;&quot;
  stdout_logfile=/dev/stdout
  stdout_logfile_maxbytes=0
  stderr_logfile=/dev/stderr
  stderr_logfile_maxbytes=0
  daemon=off
  </code></pre>
  <p>nginx_app.conf</p>
  <pre><code>server {
      listen 80 default_server;
      server_name ip;
  
      # max upload size
      client_max_body_size 75M;   # adjust to taste
  
      location / {
          include uwsgi_params;
          uwsgi_pass unix:///trell-ds-framework/app.sock;
      }
  }
  </code></pre>
  <p>uwsgi.ini file</p>
  <pre><code>[uwsgi]
  callable = app
  chdir = /trell-ds-framework
  wsgi-file = /trell-ds-framework/wsgi.py
  socket = /trell-ds-framework/app.sock
  master = true
  processes = 2
  chmod-socket = 666
  enable-threads = true
  user=root
  Can anybody guide me here if I am doing something wrong ? Any leads highly appreciated. Thanks.
  </code></pre>