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

/usr/bin/pull fails: "fatal: detected dubious ownership" #290

Open
hactar opened this issue Oct 23, 2023 · 1 comment
Open

/usr/bin/pull fails: "fatal: detected dubious ownership" #290

hactar opened this issue Oct 23, 2023 · 1 comment

Comments

@hactar
Copy link

hactar commented Oct 23, 2023

I try to run the command sudo docker exec -t -i containername /usr/bin/pull from the :latest image.

When I do I get an error:

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

	git config --global --add safe.directory /var/www/html

Checking the permissions they are:

f34e727608f2:/var/www/html# ls -lah
total 204K   
drwxr-xr-x    1 nginx    nginx       4.0K Oct 23 21:58 .
drwxr-xr-x    1 root     root        4.0K Jun 10 19:59 ..
drwxr-xr-x    8 nginx    nginx       4.0K Oct 23 21:58 .git

The container does not have any volume attached.

@rahulmr
Copy link

rahulmr commented Jan 10, 2024

Encountered same issue, please fix if possible.

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