Images
Extensions
- Composer
- gd
- xdebug (PHP<8.3)
- mbstring
- bcmath
- exif
- fileinfo
- gettext
- iconv
- opcache
- soap
- dom
- zip
- xmlrpc
- xmlwiter
- phar
- xml
- sockets
- posix
pull
$ docker pull pfitzer/php-fpm
Run the PHP-FPM image, mounting a directory from your host.
docker run -it --name php-fpm -v /path/to/your/app:/var/www/html pfitzer/php-fpm:latest php script.php
using the docker-compose example
cd example
docker-compose up -d
# goto http://localhost:8080