diff --git a/pydra/engine/environments.py b/pydra/engine/environments.py index 7929af01ef..2249f097c9 100644 --- a/pydra/engine/environments.py +++ b/pydra/engine/environments.py @@ -98,8 +98,8 @@ def execute(self, task): "run", "-v", self.bind(task.cache_dir, "rw", self.root), + *self.xargs, ] - docker_args.extend(self.xargs) docker_args.extend( " ".join( [f"-v {key}:{val[0]}:{val[1]}" for (key, val) in mounts.items()]