Skip to content

Docker build instructions fail with Git error #5044

@Crell

Description

@Crell

Affected page

https://doc.php.net/guide/local-setup.md

Issue description

Following the instructions on https://doc.php.net/guide/local-setup.md for Docker, running make gives the following error:

n$ make
docker run --rm -v .:/var/www/en -w /var/www -u 1000:1000 php/doc-en
configure.php on PHP 8.2.29, libxml 2.9.14

fatal: detected dubious ownership in repository at '/var/www/doc-base'
To add an exception for this directory, call:

        git config --global --add safe.directory /var/www/doc-base
doc-base/temp clean up FAILED.
make: *** [Makefile:22: xhtml] Error 1

I have tried to add that git config line to .docker/Dockerfile in various places, but it seems to have no effect.

Steps to reproduce

No response

Suggested fix

Git within the container really ought to be configured to run inside the container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDocumentation contains incorrect information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions