I want to build my PHP-FPM image with php-redis extension based on the official PHP Docker image, for example, using this Dockerfile: php:5.6-fpm.
php-redis
The docs
Redis is not an extension that is included in “php-src”, therefore you cannot use docker-php-ext-install. Use PECL:
docker-php-ext-install
RUN pecl install -o -f redis \ && rm -rf /tmp/pear \ && docker-php-ext-enable redis