Skip to content

Docker Compose: Git Error: fatal: detected dubious ownership in repository #333

@FalkoHilbert

Description

@FalkoHilbert

Description

Hi,

We have set up the package according to the example: docker-compose-split.yml
Unfortunately, there seems to be a problem with the mounted directories and user rights.
After I created a new repository and the initial retrieval took place, I can no longer update the package.
I get the following message in the log:

An unexpected failure occurred
The repository at "/data/composer/cache/vcs/****/" does not have the correct ownership and git refuses to use it:

fatal: detected dubious ownership in repository at '/data/composer/cache/vcs/****'
To add an exception for this directory, call:
git config --global --add safe.directory /data/composer/cache/vcs/****/

I have already tried the php-fpm, worker, and cron containers with a start command based on the pattern

command:
          - /bin/sh
          - -c
          - "git config --global --add safe.directory '*' && php-fpm -F"

Unfortunately, I still get the message.

Is this a known issue and, if so, is there a workaround?

Can you reproduce the bug on the Packeton demo site?

Not applicable

Database

PostgreSQL

Screenshots

No response

How are you running Packeton?

docker: compose-split

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