9c5814171c
Signed-off-by: John Howard <jhoward@microsoft.com>
16 lines
465 B
Go
16 lines
465 B
Go
package daemon
|
|
|
|
import "strings"
|
|
|
|
// excludeByIsolation is a platform specific helper function to support PS
|
|
// filtering by Isolation. This is a Windows-only concept, so is a no-op on Unix.
|
|
func excludeByIsolation(container *Container, ctx *listContext) iterationAction {
|
|
i := strings.ToLower(string(container.hostConfig.Isolation))
|
|
if i == "" {
|
|
i = "default"
|
|
}
|
|
if !ctx.filters.Match("isolation", i) {
|
|
return excludeContainer
|
|
}
|
|
return includeContainer
|
|
}
|