docker supervisord

1.安装 supervisord
# yum install python-setuptools
# easy_install supervisor
2.supervisord.conf 文件配置
[supervisord]
nodaemon=true

[program:sshd]
command=/usr/sbin/sshd -D

[program:mysqld]
command=/usr/bin/mysqld_safe

2.dockerfile 中调用 supervisord
RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisord.conf
CMD ["/usr/bin/supervisord"]

你可能感兴趣的:(docker,supervisord安装)