whatsthis attempts to identify if the system is running in a container based on a variety of heuristic.
First look for the
/run/.dockerenv file to identify a Docker container. Then
look for "docker" inside
Looks for the string "container=" in
Per a GitHub issue on the podman project page, there is a guarantee that container environment variable will be set to "podman".
The environment variable could be overridden by a user or image creator. As
such, this looks for the
/run/.containerenv file as well.
Per a GitHub issue on the WSL project page, checking for "microsoft" in either of these two files:
For the initial development of the app, platforms were limited to those that could easily be tested. The are some additional container run-times that could be added at a later date:
rkt: however, per GitHub page no longer under development
openvz: the commercial version, Virtuozzo is available, but otherwise development appears to have ended