datalad_container.containers_run

Drop-in replacement for datalad run for command execution in a container

class datalad_container.containers_run.ContainersRun[source]

Bases: datalad.interface.base.Interface

Drop-in replacement of ‘run’ to perform containerized command execution

Container(s) need to be configured beforehand (see containers-add). If only one container is known, it will be selected automatically, otherwise a specific container has to be specified.

A command is generated based on the input arguments such that the container image itself will be recorded as an input dependency of the command execution in the run record in the git history.