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

11 lines
254 B
Go
Raw Permalink Normal View History

2015-08-04 21:45:38 +00:00
package docker
import (
2016-05-24 00:21:28 +00:00
composeConfig "github.com/docker/libcompose/config"
"github.com/rancher/os/config"
2015-08-04 21:45:38 +00:00
)
2016-05-24 00:21:28 +00:00
func IsSystemContainer(serviceConfig *composeConfig.ServiceConfig) bool {
2016-11-28 08:06:00 +00:00
return serviceConfig.Labels[config.ScopeLabel] == config.System
2015-08-04 21:45:38 +00:00
}