Skip to content

install-php-extensions: Permission denied #1134

@laurinkeithdavis

Description

@laurinkeithdavis

Version of install-php-extensions

Unknown

Error description

C:\Program Files\Docker\Docker\resources\bin\docker.exe compose -f C:\inetpub\ecr\docker-compose.yml -p ecr up --build

[+] Building 3.3s (7/7) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 915B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/php:8.4-apache 2.3s
=> https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions 0.7s
=> [1/3] FROM docker.io/library/php:8.4-apache@sha256:d79e472947b150b581240b8d16ba234c0dd3a6a484881ebbed3bc9f53c81bd0b 0.0s
=> CACHED [2/3] ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 0.0s
=> ERROR [3/3] RUN install-php-extensions xdebug 0.3s
[3/3] RUN install-php-extensions xdebug:
#0 0.290 /bin/sh: 1: install-php-extensions: Permission denied
failed to solve: executor failed running [/bin/sh -c install-php-extensions xdebug]: exit code: 127
docker-compose process finished with exit code 17

Docker image

php:8.4-apache

Minimal Dockerfile

FROM php:8.4-apache
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-
RUN install-php-extensions xdebug

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions