Skip to main content

containers

Synopsis​

ramalama containers [options]

ramalama ps [options]

Description​

List all containers running AI Models

Command conflicts with the --nocontainer option.

Options​

--format=format​

pretty-print containers to JSON or using a Go template

Valid placeholders for the Go template are listed below:

PlaceholderDescription
.CommandQuoted command used
.Created ...Creation time for container, Y-M-D H:M:S
.CreatedAtCreation time for container (same as above)
.CreatedHumanCreation time, relative
.ExitCodeContainer exit code
.Exited"true" if container has exited
.ExitedAtTime (epoch seconds) that container exited
.ExposedPorts ...Map of exposed ports on this container
.IDContainer ID
.ImageImage Name/ID
.ImageIDImage ID
.Label stringSpecified label of the container
.Labels ...All the labels assigned to the container
.NamesName of container
.NetworksShow all networks connected to the container
.PidProcess ID on host system
.PortsForwarded and exposed ports
.RunningForTime elapsed since container was started
.SizeSize of container
.StartedAtTime (epoch seconds) the container started
.StateHuman-friendly description of ctr state
.StatusStatus of container

--help, -h​

Print usage message

--no-trunc​

Display the extended information

--noheading, -n​

Do not print heading

EXAMPLE​

$ ramalama containers
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
85ad75ecf866 quay.io/ramalama/ramalama:latest /usr/bin/ramalama... 5 hours ago Up 5 hours 0.0.0.0:8080->8080/tcp ramalama_s3Oh6oDfOP
85ad75ecf866 quay.io/ramalama/ramalama:latest /usr/bin/ramalama... 4 minutes ago Exited (0) 4 minutes ago granite-server
$ ramalama ps --noheading --format "{{ .Names }}"
ramalama_s3Oh6oDfOP
granite-server

See Also​

ramalama(1)


Aug 2024, Originally compiled by Dan Walsh <dwalsh@redhat.com>