class GetContainers
Public Instance Methods
info()
click to toggle source
# File lib/dockscan/modules/discover/get-containers.rb, line 3 def info return 'Container discovery module' end
run()
click to toggle source
# File lib/dockscan/modules/discover/get-containers.rb, line 7 def run sp=Dockscan::Scan::Plugin.new sp.obj = Docker::Container.all(:all => true) sp.output = sp.obj.map{|k,v| "#{k}=#{v}"}.join("\n") return sp end