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.
modal container exec
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.
modal container list
List all containers that are currently running.
Usage:
modal container list [OPTIONS]
Options:
--json / --no-json
: [default: no-json]--help
: Show this message and exit.