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.
30 31 32 |
# File 'lib/chef/sugar/docker.rb', line 30 def docker?(node) File.exist?('/.dockerinit') || File.exist?('/.dockerenv') end |