pub async fn launch(
opts: impl AsRef<DockerOptions>,
exec: ExecuteInfo,
) -> Result<String, Error>
Expand description
Launches the given job and returns its name so it can be tracked.
Note that this function makes its own connection to the local Docker daemon.
§Arguments
opts
: The DockerOptions that contains information on how we can connect to the local daemon.exec
: The ExecuteInfo that describes the job to launch.
§Returns
The name of the container such that it can be waited on later.
§Errors
This function errors for many reasons, some of which include not being able to connect to Docker or the container failing (to start).