title: Supervisor is not started into my docker container (Laravel project)
body: <p>Supervisor is not started into my container and i am not able to run my <code>php artisan queue:work</code> command for my laravel project.</p>
  
  <p>Extract from my Dockerfile</p>
  
  <pre><code># Add worker to supervisor config file
  COPY laravel-worker.conf /etc/supervisor/conf.d/
  
  CMD ["/usr/bin/supervisord"]
  </code></pre>
  
  <p>Here is the laravel-worker.conf:</p>
  
  <pre><code>[program:laravel-worker]
  command=php /var/www/test/current/artisan queue:work --tries=3
  user=myuser
  process_name=%(program_name)s_%(process_num)d
  directory=/var/www/test/current
  stdout_logfile=/tmp/supervisord.log
  redirect_stderr=true
  numprocs=1
  autostart=true
  autorestart=true
  </code></pre>
  
  <p>When i go into the container, the supervisor service is not started:</p>
  
  <pre><code>root@e7227ef40f63:/# service supervisor status
  supervisord is  not running.
  </code></pre>
  
  <p>And process are following:</p>
  
  <pre><code>root@e7227ef40f63:/# ps -aux | grep supervisor
  root         1  0.0  0.0   4328   652 ?        Ss   18:21   0:00 /bin/sh -c service ssh restart &amp;&amp; service apache2 restart &amp;&amp; service cron start &amp;&amp; bash /usr/bin/supervisord
  root       365  0.0  0.0  55808 10632 ?        Ss   18:25   0:00 /usr/bin/python /usr/bin/supervisord
  root       380  0.0  0.0  11120   712 ?        S+   18:27   0:00 grep supervisor
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I edited my DockerFile and put this line: </p>
  
  <pre><code>ENTRYPOINT service ssh restart &amp;&amp; service apache2 restart &amp;&amp; service cron start &amp;&amp; /usr/bin/supervisord &amp;&amp; bash 
  </code></pre>
  
  <p>The service is now well started when the container starts :</p>
  
  <pre><code>USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
  root         1  0.1  0.0   4328   652 ?        Ss   05:20   0:00 /bin/sh -c service ssh restart &amp;&amp; service apache2 restart &amp;&amp; service cron start &amp;&amp; /usr/bin/supervisord &amp;&amp; bash
  root        25  0.0  0.0  55176  1140 ?        Ss   05:20   0:00 /usr/sbin/sshd
  root        43  0.1  0.0 406408 25504 ?        Ss   05:20   0:00 /usr/sbin/apache2 -k start
  www-data    46  0.0  0.0 406440  8416 ?        S    05:20   0:00 /usr/sbin/apache2 -k start
  www-data    47  0.0  0.0 406440  8416 ?        S    05:20   0:00 /usr/sbin/apache2 -k start
  www-data    48  0.0  0.0 406440  8416 ?        S    05:20   0:00 /usr/sbin/apache2 -k start
  www-data    49  0.0  0.0 406440  8416 ?        S    05:20   0:00 /usr/sbin/apache2 -k start
  www-data    50  0.0  0.0 406440  8416 ?        S    05:20   0:00 /usr/sbin/apache2 -k start
  root        59  0.0  0.0  17484   636 ?        Ss   05:20   0:00 /usr/sbin/cron
  root        63  0.2  0.0  56012 10788 ?        Ss   05:20   0:00 /usr/bin/python /usr/bin/supervisord
  root        64  0.0  0.0  20032  1280 ?        S    05:20   0:00 bash
  root        89  0.1  0.0  20240  1996 ?        Ss   05:20   0:00 bash
  root       112  0.0  0.0  17492  1168 ?        R+   05:21   0:00 ps -aux
  </code></pre>
  
  <p>But it seams that supervisor doesn't start my config file because i don't see the 8 processes that should be run..</p>