almost 4 years ago

To running a service in docker, you should make it running in the foreground.

The following is a collection of foreground commands for common daemons.

  1. Supervisor

    $ /usr/bin/supervisord -n
  2. Apache2

    $ /usr/bin/pidproxy /var/run/apache2/ /bin/bash -c "source /etc/apache2/envvars && /usr/sbin/apache2 -DFOREGROUND"
  3. Nginx

    $ /usr/sbin/nginx -g "daemon off;"

2015/02/11 Update

  1. SSH Server
    $ /usr/sbin/sshd -D
← Rabbitmq 操作筆記 Packing a Debian Package →
comments powered by Disqus