Skip to content

Commit 9a617bf

Browse files
committed
added line to docs about executable=None for entrypoints
1 parent 3dedc5a commit 9a617bf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/source/tutorial/2-advanced-execution.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,15 @@
345345
"cell_type": "markdown",
346346
"metadata": {},
347347
"source": [
348-
"Of course for this to work Docker needs to work and be configured for\n",
349-
"[sudo-less execution](https://docs.docker.com/engine/install/linux-postinstall/).\n",
348+
"Note that for this to work Docker needs to work and be configured for\n",
349+
"[sudo-less execution](https://docs.docker.com/engine/install/linux-postinstall/). If\n",
350+
"the command you want to execute is the entrypoint of the container, you can set the\n",
351+
"`executable` field to None, e.g.\n",
352+
"`MrGrid(executable=None, in_file=nifti_file, operation=\"regrid\", voxel=(0.5, 0.5, 0.5))(environment=docker.Environment(\"mrgrid-image-with-entrypoint\"))`.\n",
350353
"See [Containers and Environments](../explanation/environments.rst) for more details on\n",
351354
"how to utilise containers and add support for other software environments.\n",
352355
"\n",
356+
"\n",
353357
"It is also possible to specify functions to run at hooks that are immediately before and after\n",
354358
"the task is executed by passing a `pydra.engine.hooks.TaskHooks` object to the `hooks`\n",
355359
"keyword arg. The callable should take the `pydra.engine.job.Job` object as its only\n",

0 commit comments

Comments
 (0)