How supervisor is working

Hi Docker Friends,

I have one question , please help.
below is my Dockerfile.

$ cat Dockerfile
FROM ubuntu:14.04

MAINTAINER basra.samrat@gmail.com

RUN apt-get update && apt-get install -y openssh-server apache2 supervisor

RUN mkdir -p /var/lock/apache2 /var/run/apache2 /var/run/sshd /var/log/supervisor

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

Expose 22 80

CMD ["/usr/bin/supervisord"]

when i run below command, below is the output

samratbasra@samrate7 MINGW64 ~/testdocker
$ docker run -p 22 -p 80 -t -i samrat/supervisord
/usr/lib/python2.7/dist-packages/supervisor/options.py:295: 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 “-c” argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2016-02-26 05:12:30,698 CRIT Supervisor running as root (no user in config file)
2016-02-26 05:12:30,699 WARN Included extra file “/etc/supervisor/conf.d/supervisord.conf” during parsing
2016-02-26 05:12:30,713 INFO RPC interface ‘supervisor’ initialized
2016-02-26 05:12:30,714 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
2016-02-26 05:12:30,714 INFO supervisord started with pid 1
2016-02-26 05:12:31,717 INFO spawned: ‘sshd’ with pid 8
2016-02-26 05:12:31,719 INFO spawnerr: can’t parse command ‘/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DEFOREGROUND’: No closing quotation
2016-02-26 05:12:32,722 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-26 05:12:32,723 INFO spawnerr: can’t parse command ‘/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DEFOREGROUND’: No closing quotation
2016-02-26 05:12:34,727 INFO spawnerr: can’t parse command ‘/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DEFOREGROUND’: No closing quotation
2016-02-26 05:12:37,733 INFO spawnerr: can’t parse command ‘/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DEFOREGROUND’: No closing quotation
2016-02-26 05:12:37,733 INFO gave up: apache2 entered FATAL state, too many start retries too quickly

Can anyone explain what exactly supervisor is doing. Like we have container we can run container in bash shell, and we can execute our command in container bash shell, but i am not getting what exactly supervisor is doing, not even exiting.

PLease Help

Best Regards
Samrat Basra