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

fatal: detected dubious ownership in repository at '/var/www/doc-base' #4380

Open
pereorga opened this issue Jan 11, 2025 · 0 comments
Open
Assignees

Comments

@pereorga
Copy link
Contributor

pereorga commented Jan 11, 2025

It happens when I run make on a clean branch on this repo:

/dev/doc-en$ make
docker build .docker -t php/doc-en
[+] Building 6.0s (5/12)                                                                                                        docker:default
 => [internal] load build definition from Dockerfile                                                                                      0.0s
 => => transferring dockerfile: 685B                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/php:8.2-cli                                                                            1.6s
 => [internal] load .dockerignore          
[...]
 => exporting to image                                                                                                                   0.8s
 => => exporting layers                                                                                                                  0.8s
 => => writing image sha256:7d2764eca497e1282db787a4c1ed74824f010d8b0fa10638d6040657d689a061                                             0.0s
 => => naming to docker.io/php/doc-en                                                                                                    0.0s

 1 warning found (use docker --debug to expand):
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 18)
touch .docker/built
docker run --rm -v .:/var/www/en -w /var/www -u 1000:1000 php/doc-en
configure.php on PHP 8.2.27

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

Reproduced on both Ubuntu 24.04.1 and macOS.

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

No branches or pull requests

2 participants