We had the issue that a team member was not able to run composer install in a docker container without any git dubious ownership errors in some composer packages.
I was trying to reproduce the issue and could not find any issue at first until I saw that there is a docker.app upgrade from version 4.33.0 to 4.34.0. Finally I could reproduce the issue. I was downgrading docker to 4.33.0 again for reproducing the previous state. It was running fine, but not with 4.34.0. After checking the issues I found the issues about permission issues with virtioFS. I tried the upgrade again with version 4.34.0 and switched the file sharing settings from VirtioFS to gRPC FUSE and it was working as expected.
Reproduce
Upgrade Docker.app to 4.34.0 and restart app (file sharing is set to VirtioFS in docker)
In a docker stack with a composer.json with some git based packages delete the vendor directory.
Run docker compose exec containername bash to get into the container console
Run composer install
You will get some of the following errors while installing a some composer packages: Install of any/package failed
The cloning process into a directory will fail with this error summary: fatal: detected dubious ownership in repository at 'install target directory'
Expected behavior
Install process with composer install run without any (permission) errors.
docker version
Client:
Version: 27.2.0
API version: 1.47
Go version: go1.21.13
Git commit: 3ab4256
Built: Tue Aug 27 14:14:45 2024
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.34.0 (165256)
Engine:
Version: 27.2.0
API version: 1.47 (minimum version 1.24)
Go version: go1.21.13
Git commit: 3ab5c7d
Built: Tue Aug 27 14:15:41 2024
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.7.20
GitCommit: 8fc6bcff51318944179630522a095cc9dbf9f353
runc:
Version: 1.1.13
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Description
We had the issue that a team member was not able to run composer install in a docker container without any git dubious ownership errors in some composer packages.
I was trying to reproduce the issue and could not find any issue at first until I saw that there is a docker.app upgrade from version 4.33.0 to 4.34.0. Finally I could reproduce the issue. I was downgrading docker to 4.33.0 again for reproducing the previous state. It was running fine, but not with 4.34.0. After checking the issues I found the issues about permission issues with virtioFS. I tried the upgrade again with version 4.34.0 and switched the file sharing settings from VirtioFS to gRPC FUSE and it was working as expected.
Reproduce
docker compose exec containername bash
to get into the container consolecomposer install
Install of any/package failed
The cloning process into a directory will fail with this error summary:fatal: detected dubious ownership in repository at 'install target directory'
Expected behavior
Install process with
composer install
run without any (permission) errors.docker version
docker info
Diagnostics ID
CDFACD1D-F7C3-4893-A89D-9066ADF69301
Additional Info
No response