Server OS can't be queried same way as docker #13690
Labels
Good First Issue
This issue would be a good issue for a first time contributor to undertake.
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
remote
Problem is in podman-remote
windows
issue/bug on Windows
/kind feature
Description
With docker one can query server os using version command
docker version -f {{.Server.Os}}
, will returnlinux
orwindows
based on if the docker engine is configured to build Linux or Windows containers. This has often been used in scripts to determine if Linux or Windows containers should be built.Steps to reproduce the issue:
podman version -f {{.Server.Os}}
Describe the results you received:
- Error: template: version:1:2: executing "version" at <.Os>: can't evaluate field Os in type *define.Version
Describe the results you expected:
linux
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical, Window 11
The text was updated successfully, but these errors were encountered: