Package org.apache.commons.lang3

# Class RuntimeEnvironment

java.lang.Object
org.apache.commons.lang3.RuntimeEnvironment

public class RuntimeEnvironment extends Object
Helps query the runtime environment.

Since:
  3.15.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RuntimeEnvironment()`
  Deprecated.
  Will be removed in 4.0.0.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Boolean`
  `inContainer()`
  Tests whether we are running in a container like Docker or Podman.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RuntimeEnvironment

    @Deprecated public RuntimeEnvironment()
    Deprecated.
    Will be removed in 4.0.0.
    Constructs a new instance.

- ## Method Details

  - ### inContainer

    public static Boolean inContainer()
    Tests whether we are running in a container like Docker or Podman.
    Returns:
      whether we are running in a container like Docker or Podman.