This repository contains Dockerfile of PHP for Docker's automated build published to the public Docker Hub Registry.
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
- 1.20.6
- 0.5.2
-
Install Docker.
-
Download automated build from public Docker Hub Registry:
docker pull repositoryjp/php
docker run -i -t -d -P repositoryjp/php
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.
This Dockerfile was designed and developed by Shinya Kinoshita (From REPOSITORY) in 2016.