NAME 名称

podman-machine-info - Display machine host info
podman-machine-info - 显示机器主机信息

SYNOPSIS 概要

podman machine info podman 机器信息

DESCRIPTION 描述

Display information pertaining to the machine host. Rootless only, as all podman machine commands can be only be used with rootless Podman.
显示与机器主机相关的信息。仅限非特权用户,因为所有 podman machine 命令只能与非特权用户的 Podman 一起使用。

OPTIONS 选项

--format, -f=format

Change output format to “json” or a Go template.
将输出格式更改为“json”或 Go 模板。

Placeholder

Description

.Host … .主机 …

Host information for local machine
本地计算机的主机信息

.Version … .版本 …

Version of the machine 计算机的版本

--help --帮助 ¶

Print usage statement. 打印使用说明。

EXAMPLES 示例

Display default Podman machine info.
显示默认的 Podman 计算机信息。

$ podman machine info
Host:
  Arch: amd64
  CurrentMachine: ""
  DefaultMachine: ""
  EventsDir: /run/user/3267/podman
  MachineConfigDir: /home/myusername/.config/containers/podman/machine/qemu
  MachineImageDir: /home/myusername/.local/share/containers/podman/machine/qemu
  MachineState: ""
  NumberOfMachines: 0
  OS: linux
  VMType: qemu
Version:
  APIVersion: 4.4.0
  Built: 1677097848
  BuiltTime: Wed Feb 22 15:30:48 2023
  GitCommit: aa196c0d5c9abd5800edf9e27587c60343a26c2b-dirty
  GoVersion: go1.20
  Os: linux
  OsArch: linux/amd64
  Version: 4.4.0

Display default Podman machine info formatted as json.
以 JSON 格式显示默认 Podman 机器信息。

$ podman machine info --format json
{
  "Host": {
    "Arch": "amd64",
    "CurrentMachine": "",
    "DefaultMachine": "",
    "EventsDir": "/run/user/3267/podman",
    "MachineConfigDir": "/home/myusername/.config/containers/podman/machine/qemu",
    "MachineImageDir": "/home/myusername/.local/share/containers/podman/machine/qemu",
    "MachineState": "",
    "NumberOfMachines": 0,
    "OS": "linux",
    "VMType": "qemu"
  },
  "Version": {
    "APIVersion": "4.4.0",
    "Version": "4.4.0",
    "GoVersion": "go1.20",
    "GitCommit": "aa196c0d5c9abd5800edf9e27587c60343a26c2b-dirty",
    "BuiltTime": "Wed Feb 22 15:30:48 2023",
    "Built": 1677097848,
    "OsArch": "linux/amd64",
    "Os": "linux"
  }
}

Display default Podman machine Host.Arch field.
显示默认 Podman 机器 Host.Arch 字段。

$ podman machine info --format "{{ .Host.Arch }}"
amd64

SEE ALSO 参见 ¶

podman(1), podman-machine(1)
podman(1),podman-machine(1)

HISTORY 历史 ¶

June 2022, Originally compiled by Ashley Cui acui@redhat.com
2022 年 6 月,最初由 Ashley Cui acui@redhat.com 编写