1
0
mirror of https://github.com/rancher/os.git synced 2025-06-03 12:20:10 +00:00
os/docker/util.go
2015-08-06 00:05:25 -07:00

12 lines
244 B
Go

package docker
import (
"github.com/docker/libcompose/project"
"github.com/rancherio/os/config"
)
func IsSystemContainer(serviceConfig *project.ServiceConfig) bool {
return serviceConfig.Labels.MapParts()[config.SCOPE] == config.SYSTEM
}