Public | Automated Build

Last pushed: 3 years ago
Short Description
Custom PHP image based on official repo. Adding mcrypt extension.
Full Description

Docker PHP

Build from PHP official docker repo.

To Build

cd /path/to/repo/docker/php
docker build -t php .

This command will build a docker image named "php" from location "."

To Run

docker run -d -p 9000:9000 --name phpfpm php

This command will run using default configuration, listening on port 9000. To change the configuration php.ini (read only), just add -v to command like this.

docker run -d -p 9000:9000 -v /path/to/php/config/php.ini:/etc/php-fpm/php.ini:ro --name phpfpm php


  • Debian 7.0 wheezy
  • PHP 5.6.7
Docker Pull Command
Source Repository