Skip to content

runai bash


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.


runai bash job-name 
    [--loglevel value] 
    [--project string | -p string] 
    [--help | -h]


<job-name> the name of the job to run the command in

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 project set <project-name>.

--help | -h

Show help text


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 running state yet.

See also

Build Workloads: Walk-through Start and Use Interactive Build Workloads.

Last update: August 30, 2020