podman-farm-list - Man Page

List the existing farms

Synopsis

podman farm list [options]

podman farm ls [options]

Description

List all the existing farms.

Options

--format=format

Change the default output format.  This can be of a supported type like 'json' or a Go template. Valid placeholders for the Go template listed below:

PlaceholderDescription
​.ConnectionsList of all system connections in the farm
​.DefaultIndicates whether farm is the default
​.NameFarm name
​.ReadWriteIndicates if this farm can be modified using the podman farm commands

Example

List all farms:

$ podman farm list
Name        Connections  Default     ReadWrite
farm1       [f38 f37]    false       true
farm2       [f37]        true        true

Show farms in JSON format:

$ podman farm list --format json
[
  {
    "Name": "farm1",
    "Connections": [
      "f38",
      "f37"
    ],
    "Default": false,
    "ReadWrite": true
  },
  {
    "Name": "farm2",
    "Connections": [
      "f37"
    ],
    "Default": true,
    "ReadWrite": true
  }
]

Show only farm names:

$ podman farm list --format "{{.Name}}"
farm1
farm2

Show detailed farm information:

$ podman farm list --format "Farm: {{.Name}} (Default: {{.Default}}, ReadWrite: {{.ReadWrite}})\nConnections: {{.Connections}}"
Farm: farm1 (Default: false, ReadWrite: true)
Connections: [f38 f37]
Farm: farm2 (Default: true, ReadWrite: true)
Connections: [f37]

See Also

podman(1), podman-farm(1)

History

July 2023, Originally compiled by Urvashi Mohnani (umohnani at redhat dot com)