Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork931
Closed
Description
I tried to use adocker_image hook on a RHEL7.7 system usingpodman with thepodman-docker package installed [This setup allows for rootless containers]. The hook attempts to modify the file, but gets a "permission denied" error. From looking at the source code, I see thatpre-commit is roughly trying to execute:
docker run -u $(id -u):$(id -g) -v $(pwd):/src:rw,Z --workdir /src -it <ENTRY> <FILE>The hook does try to run, but results in permission error.
If, however, I remove the-u option from the source code (locally, languages/docker.py, docker_cmd()), then the hook runs fine: