Public | Automated Build

Last pushed: 2 years ago
Short Description
The image for creating docker container of PHP environment.
Full Description

Docker Image for PHP Environment

This repository contains Dockerfile of PHP for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image

PHP Environment

This docker image can create a virtual environment for PHP using PHPBrew and virtPHP.

When you want to use PHP, run below commands to install PHP that you want.

[1] Confirm installable versions by PHPBrew.

phpbrew known

[2] Install PHP from PHPBrew.

# Example:
# Install PHP 5.6.19
phpbrew install 5.6.19

[3] Create a virtual environment for PHP using virtPHP.

# Example: 
# Create a virtual environment named 'php56env' with PHP 5.6.19 
# when you logged in with the user named 'centos'
virtphp create --php-bin-dir=/home/centos/.phpbrew/php/php-5.6.19/bin php56env

PHPBrew Version

  • 1.20.6

virtPHP Version

  • 0.5.2


  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull repositoryjp/php


docker run -i -t -d -P repositoryjp/php

About SSH

You can connect this container with below user.

  • login_name: php
  • password: (no password)
  • port: (random number generated by docker or you are specified.)


See the file LICENSE.

The Author

This Dockerfile was designed and developed by Shinya Kinoshita (From REPOSITORY) in 2016.

Docker Pull Command
Source Repository