Bug 2077879

Summary: Incorrect identification of podman and docker
Product: [Fedora] Fedora Reporter: Pavol Šimo <palo.simo>
Component: virt-whatAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: rjones, s
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-03 15:47:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavol Šimo 2022-04-22 13:15:50 UTC
Description of problem:
Incorrect identification of "virtualization" if running inside podman or docker.

Version-Release number of selected component (if applicable):
virt-what-1.22-1.fc35.x86_64

How reproducible:
always

Steps to Reproduce:
1a. podman run --rm -it ubi8-minimal bash -c "microdnf install virt-what > /dev/null && virt-what"
1b. docker run --rm -it ubi8-minimal bash -c "microdnf install virt-what > /dev/null && virt-what"

Actual results:
lxc

Expected results:
podman (resp. docker)

Additional info:
From manual page:
       docker
           This is a Docker container.
           Status: confirmed by Charles Nguyen
...
       podman
           This is a Podman container.
           Status: contributed by Jordan Webb

Comment 1 Richard W.M. Jones 2022-04-22 14:37:22 UTC
As virt-what is just a simple shell script and you have both
environments installed already, could you suggest a change?

Comment 2 Ben Cotton 2022-11-29 18:48:08 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Richard W.M. Jones 2023-01-03 15:47:13 UTC
There's another bug containing a potential fix so let's combine them.

*** This bug has been marked as a duplicate of bug 2155233 ***