mirror of https://github.com/n1nj4sec/pupy.git
create-workspace: podman - fix case when volume is at labeled SELinux FS
This commit is contained in:
parent
b95be4967f
commit
4a796dbbe5
|
@ -273,6 +273,7 @@ def build_templates(
|
||||||
|
|
||||||
args.extend([
|
args.extend([
|
||||||
'--name=' + container_name,
|
'--name=' + container_name,
|
||||||
|
'--security-opt', 'label=disable',
|
||||||
'--mount', 'type=bind,src=' + git_folder +
|
'--mount', 'type=bind,src=' + git_folder +
|
||||||
',target=/build/workspace/project',
|
',target=/build/workspace/project',
|
||||||
repo + 'tc-' + template + ':' + tag,
|
repo + 'tc-' + template + ':' + tag,
|
||||||
|
@ -467,6 +468,7 @@ def create_container_env(
|
||||||
|
|
||||||
create_command = [
|
create_command = [
|
||||||
orchestrator, 'create',
|
orchestrator, 'create',
|
||||||
|
'--security-opt', 'label=disable',
|
||||||
'--hostname=pupy', '--network=' + network,
|
'--hostname=pupy', '--network=' + network,
|
||||||
'--name='+container_name,
|
'--name='+container_name,
|
||||||
'--interactive', '--tty',
|
'--interactive', '--tty',
|
||||||
|
|
Loading…
Reference in New Issue