mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
Add selinux labelling option to docker_image hook type
This commit is contained in:
@@ -82,7 +82,7 @@ def docker_cmd():
|
||||
'docker', 'run',
|
||||
'--rm',
|
||||
'-u', '{}:{}'.format(os.getuid(), os.getgid()),
|
||||
'-v', '{}:/src:rw'.format(os.getcwd()),
|
||||
'-v', '{}:/src:rw,Z'.format(os.getcwd()),
|
||||
'--workdir', '/src',
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user