Skip to content

Tag: docker

How can I start php-fpm in a Docker container by default?

I have this Docker image – Basically, I want it so that php-fpm starts when the docker container starts. I have php-fpm working if I manually go into the container and turn it on with /usr/sbin/php-fpm. I tried it inside of my ansible file with this command (it didn’t work). I tried using the serv…

Starting Docker containers from PHP

When I attempt to startup a Docker container via PHP I get the following error I try to execute the docker run command via shell_exec so the executing user, on Ubuntu 14.04, is www-data. For good measure I tried to run the docker command as sudo but it made no difference. Googling around for “Are you tr…