Skip to content

Use podman-version without starting the podman machine #28222

@arthurbarr

Description

@arthurbarr

Feature request description

Running podman version fails on macOS is the Podman machine is not started. Many other similar CLIs (e.g. kubectl) will at least print the client version. It's annoying to need to start a VM to find out which version of the client I have.

Suggest potential solution

Running podman version should just print the client version if it can't connect.

Have you considered any alternatives?

Starting the machine is a solution, but is frustrating.

Additional context

Example of current output:

# podman version
Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman socket: failed to connect: dial tcp 127.0.0.1:62099: connect: connection refused

Example from kubectl:

# kubectl version
Client Version: v1.34.1
Kustomize Version: v5.7.1
The connection to the server 127.0.0.1:46227 was refused - did you specify the right host or port?

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.triagedIssue has been triagedvolunteers-wantedIssues good for community/volunteer contributions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions