nuke icon indicating copy to clipboard operation
nuke copied to clipboard

Add EnvironmentInfo.IsDocker

Open arodus opened this issue 4 years ago • 1 comments

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 avatar Oct 18 '20 15:10 arodus

@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 Overflow
It'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...

Sam13 avatar Nov 06 '20 14:11 Sam13