Docker, Supervisord and supervisor-stdout Docker, Supervisord and supervisor-stdout docker docker

Docker, Supervisord and supervisor-stdout


I had the same problem, in short, you need to install the Python package that provides that supervisor_stdout:event_handler handler. You should be able to by issuing the following commands:

apt-get install -y python-pippip install supervisor-stdout

If you have pip installed on that container, a simple:

pip install supervisor-stdout should suffice, more info about that specific package can be found here:

https://pypi.python.org/pypi/supervisor-stdout

AFAIK, there is no debian package that provides the supervisor-stdout, so the easiest method to install it is through pip.

Hope it helps whoever comes here as I did.

[Edit]As Vin-G suggested, if you still have a problem even after going through these steps, supervisord might be stuck in an old version. Try updating it.

Cheers!


I had the exact same problem and solved it by using Ubuntu 14.04 as a base image instead of Debian Jessie (I was using python:2.7 image which is based on Jessie).

You can refer to this complete working implementation: https://github.com/rehabstudio/docker-gunicorn-nginx.

EDIT: as pointed out by @Vin-G in his comment, it might be because the supervisor version shipped with Debian Jessie is too old. You could try to remove it from apt and install it with pip instead.


Very similar to the above, but I don't think that there is a complete answer.

I had to remove from apt

apt-get remove supervisor

Then reinstall with pip, but with pip2 as the current version of supervisor doesn't support python 3

apt-get install -y python-pippip2 install supervisorpip2 install supervisor-stdout

This all then worked.

Although the supervisord path is now

/usr/local/bin/supervisord

Hope that helps.