1
0
mirror of https://github.com/rancher/os.git synced 2025-05-17 04:19:30 +00:00
os/docker/util.go

12 lines
244 B
Go
Raw Normal View History

2015-08-04 21:45:38 +00:00
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
}