

#DOCKER FOR MAC IP ADDRESS INSTALL#
Line 4: Install the Xdebug extension via PECL. Line 3: We enable the rewrite Apache module because most of my projects need it.

#DOCKER FOR MAC IP ADDRESS HOW TO#
More information about installing PHP extensions in containers can be found on the PHP repository page for Docker under the How to install more PHP extensions section. Line 2: Runs a script that will install the mysqli PHP extension. Line 1: Specifies the base image from which we’re building our custom image. FROM php:7.1-apacheĬOPY xdebug.ini /usr/local/etc/php/conf.d Let’s move on to creating our Dockerfile . Now that our configuration files are complete. The second configuration file is for Xdebug. This one-liner will keep PHP from complaining about setting a time-zone. Let’s create a directory where we’ll store the files that we’re creating. Some familiarity with the command line is assumed. If you don’t already have it installed, get Docker for your platform here.

This article walks through setting up Xdebug on a Docker container running Apache with PHP 7.1.
