Example:
if (isContainer()) {
writeln("Running in container");
}bool isContainer() @safe nothrowChecks if the current process is running in a container.
This function checks for common container indicators.
Example:
if (isContainer()) {
writeln("Running in container");
}