How can I install the php memcached extension on Docker's PHP7 Alpine image?
问题 The official php7 docker image has the following example: FROM php:7.0-fpm RUN apt-get update && apt-get install -y libmemcached-dev \ && pecl install memcached \ && docker-php-ext-enable memcached I'm trying to use FROM php:7.0-fpm-alpine : RUN apk add --update --no-cache libmemcached-dev RUN pecl install memcached && docker-php-ext-enable memcached PECL gives this error: pecl/memcached requires PHP (version >= 5.2.0, version <= 6.0.0, excluded versions: 6.0.0), installed version is 7.0.13