nuke
nuke copied to clipboard
Add EnvironmentInfo.IsDocker
Add EnvironmentInfo to determine if Nuke is running in a (linux) docker container. Unfortunately, I'm not aware of a way to reliably detect if we're running in a windows container.
I confirm that the pull-request:
- [x] Follows the contribution guidelines
- [x] Is based on my own work
- [x] Is in compliance with my employer
@arodus In Windows container environment I check the existence of the service cexecsvc to decide whether I'm inside a container or not.
Source: https://stackoverflow.com/questions/43002803/detect-if-process-executes-inside-a-windows-container
Stack OverflowIt's simple. I would like to detect with code if my process is running inside a windows container. There are examples but they are all for linux based containers.I'm looking for something unique...