Skip to content

Commit f048715

Browse files
author
Peter Amstutz
committed
Add --net=none to disable networking for Docker containers by default.
1 parent e5d7d04 commit f048715

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cwltool/job.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def run(self, dry_run=False, pull_image=True, rm_container=True, rm_tmpdir=True,
6767
runtime.append("--volume=%s:%s:rw" % (os.path.abspath(self.tmpdir), "/tmp"))
6868
runtime.append("--workdir=%s" % ("/var/spool/cwl"))
6969
runtime.append("--read-only=true")
70+
runtime.append("--net=none")
7071
euid = docker_vm_uid() or os.geteuid()
7172
runtime.append("--user=%s" % (euid))
7273

0 commit comments

Comments
 (0)