modal container

Manage running containers.

Usage:

modal container [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • exec: Execute a command in a container.
  • list: List all containers that are currently running.

Execute a command in a container.

Usage:

modal container exec [OPTIONS] CONTAINER_ID COMMAND...

Arguments:

  • CONTAINER_ID: Container ID. [required]
  • COMMAND...: A command to run inside the container. [required]

Options:

  • --pty / --no-pty: Run the command using a PTY. [default: pty]
  • --help: Show this message and exit.

List all containers that are currently running.

Usage:

modal container list [OPTIONS]

Options:

  • --help: Show this message and exit.