virt-what

detect if we are running in a virtual machine

Debian Debian
RUN apt-get update && \ apt-get install -y virt-what
Ubuntu
RUN apt-get update && \ apt-get install -y virt-what
Alpine
RUN apk add virt-what
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y virt-what
CentOS
RUN yum install -y virt-what
Fedora
RUN dnf install -y virt-what
Raspbian
RUN apt-get update && \ apt-get install -y virt-what
click the source code to copy install virt-what on any operating system with command-not-found.com