Environment::Is - Detect environments like Docker or WSL
version 0.01
use Environment::Is qw( is_docker is_wsl ); if(is_docker()) { ... } if(is_wsl()) { ... }
This module provides some is_
prefixed functions for detecting certain environments. Additional environments may be added in the future.
Returns true if the current process is running inside a docker container.
Return true if the current process is interactive.
Returns true if the current process is running inside Windows Subsystem for Linux (WSL).
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2024 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.