Bug 2077879 - Incorrect identification of podman and docker
Summary: Incorrect identification of podman and docker
Keywords:
Status: CLOSED DUPLICATE of bug 2155233
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-what
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-22 13:15 UTC by Pavol Šimo
Modified: 2023-01-03 15:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-03 15:47:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.