From 54b2397f3eebd56da2280d8186a956adac725268 Mon Sep 17 00:00:00 2001 From: Shamir Alavi Date: Mon, 4 Mar 2024 16:39:31 -0500 Subject: [PATCH] doc: fixed erroneous virtualization commands (#2300) (#2308) Co-authored-by: Mark Smith --- doc/UserGuide/Virtualization.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/UserGuide/Virtualization.rst b/doc/UserGuide/Virtualization.rst index 2a308997cd..ff4fa1931e 100644 --- a/doc/UserGuide/Virtualization.rst +++ b/doc/UserGuide/Virtualization.rst @@ -39,7 +39,7 @@ The container can also be provided as a Docker image from a repository. The defa .. code-block:: python j.virtualization = Singularity("docker://gitlab-registry.cern.ch/lhcb-core/lbdocker/centos7-build:v3") - j.virtualization = Docker("docker://fedora:latest") + j.virtualization = Docker(image="fedora:latest") Another option is to provide a ``GangaFile`` Object which points to a singularity file. In that case the singularity image file will be copied to the worker node. The first example is with an image located on some shared disk. This will be effective for running on a local backend or a batch system with a shared disk system. @@ -78,7 +78,7 @@ the image from the docker hub. .. code-block:: python j=Job() - j.virtualization = Docker("image:tag") + j.virtualization = Docker(image="image:tag") Ganga will try to run the container using Docker if Docker is available in the worker node and if the user has the permission to run docker containers. If not ganga will download `UDocker `_ which provides the ability to run docker containers in userspace. The runmode in Udocker can be changed as seen in the documentation. Using Singualarity as the run mode is not recommended; use the ``Singularity`` class above instead.