diff --git a/hosts/hosts.go b/hosts/hosts.go index a9a03187..e163a171 100644 --- a/hosts/hosts.go +++ b/hosts/hosts.go @@ -473,7 +473,9 @@ func GetInternalAddressForHosts(hostList []*Host) []string { func IsDockerSELinuxEnabled(host *Host) bool { for _, securityOpt := range host.DockerInfo.SecurityOptions { - if securityOpt == "selinux" { + logrus.Tracef("IsDockerSELinuxEnabled: securityOpt found: [%s]", securityOpt) + // name=selinux was the value returned after removing statically set Docker API version 1.24 + if securityOpt == "selinux" || securityOpt == "name=selinux" { logrus.Debugf("Host [%s] has SELinux enabled in Docker", host.Address) return true }