doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

Docker build instructions fail with Git error

Open Crell opened this issue 1 month ago • 2 comments

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.

Crell avatar Dec 15 '25 22:12 Crell