Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose build php-fpm went wrong with php version 8.1 and 8.2 #3446

Closed
noud opened this issue Sep 5, 2023 · 5 comments
Closed

docker-compose build php-fpm went wrong with php version 8.1 and 8.2 #3446

noud opened this issue Sep 5, 2023 · 5 comments

Comments

@noud
Copy link
Contributor

noud commented Sep 5, 2023

i git cloned laradock a month ago.

docker-compose build php-fpm went wrong with php version 8.1 and 8.2
php-fpm builds okay with php version 7.*

i get this error:

 Step 9/206 : RUN set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     apt-get install -yqq       apt-utils       gnupg2       git       libzip-dev zip unzip &&       if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then         docker-php-ext-configure zip;       else         docker-php-ext-configure zip --with-libzip;       fi &&       docker-php-ext-install zip &&       php -m | grep -q 'zip'
---> Running in a0177f24de56
+ apt-get update -yqq
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
ERROR: Service 'php-fpm' failed to build : The command '/bin/sh -c set -xe;     rm -vf /var/lib/apt/lists/* &&     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     apt-get install -yqq       apt-utils       gnupg2       git       libzip-dev zip unzip &&       if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then         docker-php-ext-configure zip;       else         docker-php-ext-configure zip --with-libzip;       fi &&       docker-php-ext-install zip &&       php -m | grep -q 'zip'' returned a non-zero code: 100

@noud noud added the Type: Bug label Sep 5, 2023
@noud
Copy link
Contributor Author

noud commented Sep 5, 2023

i just git cloned a new laradock version,
error is still there.

@noud
Copy link
Contributor Author

noud commented Sep 5, 2023

WORKSPACE_BASE_IMAGE_TAG_PREFIX=20220115
did not fix it, still the error.

@noud
Copy link
Contributor Author

noud commented Sep 5, 2023

$ docker -v
Docker version 20.10.6, build 370c289

@noud
Copy link
Contributor Author

noud commented Sep 5, 2023

upgrading docker fixed my error.
$ docker -v
Docker version 20.10.14, build a224086

@noud
Copy link
Contributor Author

noud commented Sep 5, 2023

issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants