inDocker property

bool inDocker
final

Returns true if we are running in a docker shell

Implementation

static final bool inDocker = exists('/.dockerenv');