Skip to content

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

Open
@hactar

Description

@hactar

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions