diff --git a/php-unit-test/7.2/Dockerfile b/php-unit-test/7.2/Dockerfile
index 4615de0463273b30e5284b4b489ab4ed1b06cd80..e7eb5bd6ba10ab3f3519eab0989bb072d022b0da 100644
--- a/php-unit-test/7.2/Dockerfile
+++ b/php-unit-test/7.2/Dockerfile
@@ -14,7 +14,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
 
 RUN apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS \
     && pecl channel-update pecl.php.net \
-    && pecl install xdebug-3.1.6 redis \
+    && pecl install xdebug-3.1.6 redis-6.0.2 \
     && docker-php-ext-enable xdebug redis \
     && apk del --no-cache $PHPIZE_DEPS
 RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \
diff --git a/php-unit-test/7.3/Dockerfile b/php-unit-test/7.3/Dockerfile
index de6e937caf88271d784a6c379aa74798a0112675..8f2ef7e8aab0f5fb63ebf3a89ccef97aec0d1c1a 100644
--- a/php-unit-test/7.3/Dockerfile
+++ b/php-unit-test/7.3/Dockerfile
@@ -15,7 +15,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
 RUN export BUILD_DEPS="bzip2-dev icu-dev libpng-dev libzip-dev openldap-dev" \
     && apk add --no-cache bash nodejs npm $PHPIZE_DEPS $BUILD_DEPS \
     && pecl channel-update pecl.php.net \
-    && pecl install xdebug-3.1.6 redis \
+    && pecl install xdebug-3.1.6 redis-6.0.2 \
     && docker-php-ext-install bz2 gd intl ldap mysqli pdo_mysql zip \
     && docker-php-ext-enable xdebug redis \
     && apk del --no-cache $PHPIZE_DEPS