diff --git a/planemo/galaxy/config.py b/planemo/galaxy/config.py index 4ec468175..570f077eb 100644 --- a/planemo/galaxy/config.py +++ b/planemo/galaxy/config.py @@ -130,6 +130,7 @@ ${docker_sudo_cmd} ${docker_cmd} ${docker_volumes} + ${docker_host_param} @@ -1363,6 +1364,7 @@ def _handle_job_config_file( "docker_cmd": str(kwds.get("docker_cmd", docker_util.DEFAULT_DOCKER_COMMAND)), "docker_host_param": docker_host_param, "docker_volumes": docker_volumes_str, + "docker_run_extra_arguments": kwds.get("docker_run_extra_arguments", ""), } ) write_file(job_config_file, conf_contents) diff --git a/planemo/options.py b/planemo/options.py index 03f5eb3c1..c17069787 100644 --- a/planemo/options.py +++ b/planemo/options.py @@ -956,12 +956,22 @@ def docker_host_option(): ) +def docker_run_extra_arguments_option(): + return planemo_option( + "--docker_run_extra_arguments", + help="Extra arguments to pass to docker run.", + use_global_config=True, + default="", + ) + + def docker_config_options(): return _compose( docker_cmd_option(), docker_sudo_option(), docker_host_option(), docker_sudo_cmd_option(), + docker_run_extra_arguments_option(), )