I get the following error when installing PHP FPM:
Creating config file /etc/php/7.0/fpm/php.ini with new version
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
I tried the following tweaks in my dockerfile:
RUN echo exit 0 > /usr/sbin/policy-rc.d
RUN /etc/init.d/php7.0-fpm start
RUN service php7.0-fpm start
None of this works, and PHP FPM isn't running on boot.
However if I ssh in and manually run the following command:
service php7.0-fpm start
Then it starts working! What is the problem here?