Module: Chef::Sugar::Docker
Instance Method Summary collapse
-
#docker?(node) ⇒ Boolean
Returns true if the current node is a docker container.
Instance Method Details
#docker?(node) ⇒ Boolean
Returns true if the current node is a docker container.
32 33 34 |
# File 'lib/chef/sugar/docker.rb', line 32 def docker?(node) File.exist?('/.dockerinit') || File.exist?('/.dockerenv') end |