is-container
Check if the process is running inside a container.
Lib
use is_container;
if is_container
CLI
# Exits with code 0 if inside a container and 2 if not.
Check if the process is running inside a container.
use is_container;
if is_container
# Exits with code 0 if inside a container and 2 if not.