Skip to content

Qemu only : linux/arm/v7 'Command 'install' is not valid, try 'pecl help' #8

@ohnotnow

Description

@ohnotnow

Resubmitting from docker-library/php#893 .

Slightly odd issue - if I try and build a multiarch image and use a pecl install redis as part of it - then it fails on the linux/arm/v7 build. Example Dockerfile :

FROM php:7.3-apache
RUN pecl install redis && docker-php-ext-enable redis

Running :

docker buildx build --pull --load --no-cache --platform linux/arm/v7 -t test-pecl -f Dockerfile .

Fails with

 => ERROR [2/2] RUN pecl install redis && docker-php-ext-enable redis      1.3s
------                                                                          
 > [2/2] RUN pecl install redis && docker-php-ext-enable redis:                 
#5 0.583 Command 'install' is not valid, try 'pecl help' 

Running :

docker buildx build --pull --load --no-cache --platform linux/amd64 -t test-pecl -f Dockerfile .

Works fine. The docker version in front of me is Docker version 19.03.2, build 6a30dfc. Let me know if there's any more info I can supply or something to dig into :-)

Oh - and running the php:7.3 image on an actual ARM machine also runs pecl install redis a-ok as noted on the original issue linked above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions