github.com/portworx/docker@v1.12.1/daemon/list_windows.go (about) 1 package daemon 2 3 import ( 4 "strings" 5 6 "github.com/docker/docker/container" 7 ) 8 9 // excludeByIsolation is a platform specific helper function to support PS 10 // filtering by Isolation. This is a Windows-only concept, so is a no-op on Unix. 11 func excludeByIsolation(container *container.Container, ctx *listContext) iterationAction { 12 i := strings.ToLower(string(container.HostConfig.Isolation)) 13 if i == "" { 14 i = "default" 15 } 16 if !ctx.filters.Match("isolation", i) { 17 return excludeContainer 18 } 19 return includeContainer 20 }