podman icon indicating copy to clipboard operation
podman copied to clipboard

Getting Started documentation uses podman inspect -l, but the option is not available in Podman 6.0.1

Open alter-yash opened this issue 4 months ago • 3 comments

Issue Description

While following the official Getting Started documentation, I noticed that it uses the command:

podman inspect -l

Steps to reproduce the issue

Steps to reproduce the issue

  1. Install Podman v6.0.1.
  2. Follow the official Getting Started guide.
  3. Run:
podman inspect -l
  1. Observe that the command fails.

Describe the results you received

The command fails with:

Error: unknown shorthand flag: 'l' in -l
See 'podman inspect --help'

### Describe the results you expected

Either:

- the documentation should use the currently supported command, or
- if `-l` is still intended to be supported, the command should work as documented.

### podman info output

```yaml
If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

  • macOS 26.5.2
  • Apple Silicon

Additional information

The outdated command appears on the official Getting Started documentation page.

Documentation page: https://podman.io/docs

If this is intentional for an older version of Podman, it may be helpful to clarify the version the documentation applies to.

alter-yash avatar Jul 10 '26 18:07 alter-yash

/assign

alter-yash avatar Jul 10 '26 18:07 alter-yash

The documenation says:

Note: The -l is a convenience argument for latest container. Instead of this short argument, you can also use the container's ID, container's name or the long argument (--latest). Note: If you are running remote Podman client, including Mac and Windows (excluding WSL2) machines, the -l option is not available.

The command is only available on Linux (podman), not on other platforms (podman-remote)

  • #7127
$ podman inspect --latest
[]
Error: no containers to inspect: no such container
$ podman-remote inspect --latest
Error: unknown flag: --latest
See 'podman-remote inspect --help'

afbjorklund avatar Jul 11 '26 11:07 afbjorklund

I agree that this is clearly documented. Closing this, please feel free to reopen if you think there's more to be done.

danishprakash avatar Jul 13 '26 07:07 danishprakash