Docker – CMD and supervisord

dockersupervisordubuntu-14.04

I am trying to get docker ENTRYPOINT or CMD to startup supervisor when the image is run.

This is the last line in my Dockerfile:

CMD ["service supervisor start"]

This isn't working. I get the error:

Error response from daemon: Cannot start container eb3eeb404462343680fec5af4c5a6372046713a3ccaa2893c9f4a0a9eda97753: [8] System error: exec: "service supervisor start": executable file not found in $PATH

Best Answer

Worked using the following:

CMD ["/usr/bin/supervisord"]

https://docs.docker.com/v1.8/articles/using_supervisord/