| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static Boolean | Returns: whether we are running in a container like Docker or Podman. Never null.Tests whether we are running in a container like Docker or Podman. |
| pack-priv static boolean | Returns: Whether we are running in a container like Docker or Podman.Tests whether we are running in a container like Docker or Podman. |
| private static String |
| RuntimeEnvironment | back to summary |
|---|---|
| public RuntimeEnvironment()
Deprecated Will be removed in 4.0.0. Constructs a new instance.
| |
| fileExists | back to summary |
|---|---|
| private static boolean fileExists(final String path) | |
| inContainer | back to summary |
|---|---|
| public static Boolean inContainer() Tests whether we are running in a container like Docker or Podman. The following may change if we find better detection logic. We roughly follow the logic in SystemD: We check the `container` environment variable of process 1:
| |
| inContainer | back to summary |
|---|---|
| pack-priv static boolean inContainer(final String dirPrefix) Tests whether we are running in a container like Docker or Podman. The following may change if we find better detection logic. We roughly follow the logic in SystemD: We check the `container` environment variable of process 1:
| |
| readFile | back to summary |
|---|---|
| private static String readFile(final String envVarFile, final String key) Tests whether the | |