@@ -46,6 +46,73 @@ Print usage statement.
4646Inspect the specified Podman machine.
4747```
4848$ podman machine inspect podman-machine-default
49+ [
50+ {
51+ "ConfigDir": {
52+ "Path": "/Users/jacksparrow/.config/containers/podman/machine/applehv"
53+ },
54+ "ConnectionInfo": {
55+ "PodmanSocket": {
56+ "Path": "/var/folders/9r/n3056v597wv2cq8s2j80bdnw0000gn/T/podman/podman-machine-default-api.sock"
57+ },
58+ "PodmanPipe": null
59+ },
60+ "Created": "2025-02-11T14:12:48.231836+05:30",
61+ "LastUp": "2025-08-12T19:31:19.391294+05:30",
62+ "Name": "podman-machine-default",
63+ "Resources": {
64+ "CPUs": 6,
65+ "DiskSize": 100,
66+ "Memory": 6144,
67+ "USBs": []
68+ },
69+ "SSHConfig": {
70+ "IdentityPath": "/Users/jacksparrow/.local/share/containers/podman/machine/machine",
71+ "Port": 53298,
72+ "RemoteUsername": "core"
73+ },
74+ "State": "running",
75+ "UserModeNetworking": true,
76+ "Rootful": false,
77+ "Rosetta": true
78+ }
79+ ]
80+ ```
81+
82+ Show machine name and state:
83+ ```
84+ $ podman machine inspect --format "{{.Name}}\t{{.State}}"
85+ podman-machine-default running
86+ ```
87+
88+ Show machine resource information:
89+ ```
90+ $ podman machine inspect --format "Machine: {{.Name}}\nCPUs: {{.Resources.CPUs}}\nMemory: {{.Resources.Memory}} bytes\nDisk: {{.Resources.DiskSize}} bytes"
91+ Machine: podman-machine-default
92+ CPUs: 6
93+ Memory: 6144 bytes
94+ Disk: 100 bytes
95+ ```
96+
97+ Show machine configuration details:
98+ ```
99+ $ podman machine inspect --format "{{.Name}}: {{.State}} (Rootful: {{.Rootful}}, User Networking: {{.UserModeNetworking}})"
100+ podman-machine-default: running (Rootful: false, User Networking: true)
101+ ```
102+
103+ Show machine uptime information:
104+ ```
105+ $ podman machine inspect --format "Created: {{.Created}}\nLast Up: {{.LastUp}}\nState: {{.State}}"
106+ Created: 2025-02-11 14:12:48.231836 +0530 IST
107+ Last Up: 2025-08-12 19:31:19.391294 +0530 IST
108+ State: running
109+ ```
110+
111+ Show connection information:
112+ ```
113+ $ podman machine inspect --format "Socket: {{.ConnectionInfo.PodmanSocket}}\nConfig Dir: {{.ConfigDir}}"
114+ Socket: {/var/folders/9r/n3056v597wv2cq8s2j80bdnw0000gn/T/podman/podman-machine-default-api.sock <nil>}
115+ Config Dir: {/Users/jacksparrow/.config/containers/podman/machine/applehv <nil>}
49116```
50117
51118## SEE ALSO
0 commit comments