How do I run Apache 2 on Alpine in Docker?

后端 未结 2 1761
名媛妹妹
名媛妹妹 2021-02-12 23:05

According to Alpine wiki I have to run rc-service apache2 startafter installation of Apache 2. However, there\'s no rc-service in the Alpine running in

2条回答
  •  面向向阳花
    2021-02-12 23:39

    gliderlabs/docker-alpine issue 183 illustrate the docker Alpine image has no service or rc-service.

    You can see instead nimmis/docker-alpine-apache based on nimmis/docker-alpine-micro, which includes a runit, used to handle starting and shutting down processes automatically started.

    That initd will start the apache2 script, which calls:

    exec /usr/sbin/httpd -D FOREGROUND -f /web/config/httpd.conf
    

提交回复
热议问题