Allow remote runtimes to pass apparmor host validation

pull/6/head
Pengfei Ni 2017-08-23 09:34:09 +08:00
parent e633a1604f
commit 15b9871d50
1 changed files with 2 additions and 2 deletions

View File

@ -111,8 +111,8 @@ func validateHost(runtime string) error {
}
// Check runtime support. Currently only Docker is supported.
if runtime != "docker" {
return fmt.Errorf("AppArmor is only enabled for 'docker' runtime. Found: %q.", runtime)
if runtime != "docker" && runtime != "remote" {
return fmt.Errorf("AppArmor is only enabled for 'docker' and 'remote' runtimes. Found: %q.", runtime)
}
return nil