You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* We check the `container` environment variable of process 1:
51
+
* </p>
52
+
* <ol>
53
+
* <li>If the variable is empty, we return false. This includes the case, where the container developer wants to hide the fact that the application runs in
54
+
* a container.</li>
55
+
* <li>If the variable is not empty, we return true.</li>
56
+
* <li>If the variable is absent, we continue.</li>
57
+
* <li>We check files in the container. According to SystemD:/
58
+
* <ol>
59
+
* <li>/.dockerenv is used by Docker.</li>
60
+
* <li>/run/.containerenv is used by PodMan.</li>
61
+
* </ol>
62
+
* </li>
63
+
* </ol>
39
64
*
40
-
* @return whether we are running in a container like Docker or Podman. Never null
65
+
* @return whether we are running in a container like Docker or Podman. Never null.
* We check the `container` environment variable of process 1:
86
+
* </p>
87
+
* <ol>
88
+
* <li>If the variable is empty, we return false. This includes the case, where the container developer wants to hide the fact that the application runs in
89
+
* a container.</li>
90
+
* <li>If the variable is not empty, we return true.</li>
91
+
* <li>If the variable is absent, we continue.</li>
92
+
* <li>We check files in the container. According to SystemD:/
93
+
* <ol>
94
+
* <li>/.dockerenv is used by Docker.</li>
95
+
* <li>/run/.containerenv is used by PodMan.</li>
96
+
* </ol>
97
+
* </li>
98
+
* </ol>
99
+
*
100
+
* @return Whether we are running in a container like Docker or Podman.
We check the `container` environment variable of process 1:
52
-
If the variable is empty, we return false. This includes the case, where the container developer wants to hide the fact that the application runs in a container.
53
-
If the variable is not empty, we return true.
54
-
If the variable is absent, we continue.
55
-
56
-
We check files in the container. According to SystemD:
0 commit comments