diff --git a/app/models/host.rb b/app/models/host.rb index 1b4d3a50b206..c65ced565569 100644 --- a/app/models/host.rb +++ b/app/models/host.rb @@ -1103,7 +1103,12 @@ def refresh_services(ssu) services = MiqLinux::Utils.parse_chkconfig_list(services) end - services.each do |service| + containers = ssu.shell_exec("docker ps --format 'table {{.Names}}\t{{.Status}}' | tail -n +2") + if containers + containers = MiqLinux::Utils.parse_docker_ps_list(containers) + end + + (services + containers).each do |service| s = xml.add_element(:service, 'name' => service[:name], 'systemd_load' => service[:systemd_load],