We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09bda7f commit 6d8f542Copy full SHA for 6d8f542
1 file changed
lib/berkeley_library/docker.rb
@@ -7,7 +7,7 @@ module BerkeleyLibrary
7
module Docker
8
class << self
9
def running_in_container?
10
- File.exist?('/.dockerenv') || init_cgroup_is_dockerish?
+ File.exist?('/.dockerenv') || init_cgroup_is_dockerish? || env_is_podmanish?
11
end
12
13
private
@@ -19,6 +19,10 @@ def init_cgroup_is_dockerish?
19
false
20
21
22
+
23
+ def env_is_podmanish?
24
+ ENV.fetch('container', '') == 'podman'
25
+ end
26
27
28
0 commit comments