This image is based on the official php image. It also does the following:
- Enable
pdo_pgsql,pdo_mysql,mbstring,mcrypt,zip,sockets,intlandbcmathextensions. - Install composer.
- Install XDebug.
- Install APCu.
- Configure XDebug to be used in Docker.
- Enable OPCache.
- Configure
realpath_cache_sizeandrealpath_cache_ttl. - Set the default timezone to
UTC. - Enable the apache rewrite module.
See the php image documentation.
But use milk/php-xdebug instead of php.
It should work out of the box with your IDE.
You must specify the following option:
xdebug.remote_autostartxdebug.remote_host
For example, you can run:
php -d xdebug.remote_autostart=1 -d xdebug.remote_host=192.168.99.1 test.php
This image is officially supported on Docker version 1.8.1.
Support for older versions (down to 1.6) is provided on a best-effort basis.
Please see the Docker installation documentation for details on how to upgrade your Docker daemon.