1
0
mirror of https://github.com/rancher/os.git synced 2025-06-19 03:31:55 +00:00
os/pkg/docker/util.go

12 lines
255 B
Go
Raw Normal View History

2015-08-04 21:45:38 +00:00
package docker
import (
"github.com/rancher/os/config"
composeConfig "github.com/docker/libcompose/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
}