close

[Solved] Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning Error Occurs?

Today I get the following error Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning in php.

How To Solve Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning Error ?

  1. How To Solve Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning Error ?

    To Solve Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning Error In order to build a php/apache container you just have to first install libzip-dev library. At least using the docker image php:7.3-apache

  2. Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning

    To Solve Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning Error In order to build a php/apache container you just have to first install libzip-dev library. At least using the docker image php:7.3-apache

Solution 1


I built a PHP container on Docker using php:7.2-fpm-alpine

FROM php:7.2-fpm-alpine

WORKDIR /var/www

RUN apk add --no-cache zip libzip-dev
RUN docker-php-ext-configure zip --with-libzip
RUN docker-php-ext-install zip
RUN docker-php-ext-install pdo pdo_mysql 

Solution 2

In order to build a php/apache container you just have to first install libzip-dev library. At least using the docker image php:7.3-apache

FROM php:7.3-apache
MAINTAINER XXX

RUN apt-get update
RUN apt-get install -y libzip-dev
RUN docker-php-ext-install zip

Hope it helps

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment