mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add selinux labelling option to docker_image hook type
This commit is contained in:
parent
39d5205e31
commit
f0cf940cb5
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ def docker_cmd():
|
||||||
'docker', 'run',
|
'docker', 'run',
|
||||||
'--rm',
|
'--rm',
|
||||||
'-u', '{}:{}'.format(os.getuid(), os.getgid()),
|
'-u', '{}:{}'.format(os.getuid(), os.getgid()),
|
||||||
'-v', '{}:/src:rw'.format(os.getcwd()),
|
'-v', '{}:/src:rw,Z'.format(os.getcwd()),
|
||||||
'--workdir', '/src',
|
'--workdir', '/src',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue