Skip to content

runai bash

Description

Get a bash session inside a running Job

This command is a shortcut to runai exec (runai exec -it job-name bash). See runai exec for full documentation of the exec command.

Synopsis

runai bash <job-name> 
    [--pod string]

    [--loglevel value] 
    [--project string | -p string] 
    [--help | -h]

Options

<job-name> - The name of the Job to run the command with. Mandatory.

--pod string

Specify a pod of a running Job. To get a list of the pods of a specific Job, run runai describe job <job-name> command

Global Flags

--loglevel (string)

Set the logging level. One of: debug | info | warn | error (default "info")

--project | -p (string)

Specify the Project to which the command applies. By default, commands apply to the default Project. To change the default Project use runai config project <project-name>.

--help | -h

Show help text

Output

The command will access the container that should be currently running in the current cluster and attempt to create a command-line shell based on bash.

The command will return an error if the container does not exist or has not been in a running state yet.

See also

Build Workloads. See Quickstart document: Launch Interactive Build Workloads.