I have a Docker container with PHP-FPM installed. To start it with -d option I tried this, but the container exits immediately:
docker run -d --name u12php53 -p 9001:9000 php53 /usr/local/etc/php-fpm.sh The content of /usr/local/etc/php-fpm.sh is:
service php5-fpm start && tail -F /var/log/php5-fpm.log if I start the docker like this:
docker run -it --name u12php53 -p 9001:9000 -v php53 and start php-fpm.sh manually, PHP-FPM works fine and its log file is printed to stdout.
The final goal is to configure Docker to start my container with the system starts (or reboots).