util.go 255 B

123456789101112
  1. package docker
  2. import (
  3. "github.com/rancher/os/config"
  4. composeConfig "github.com/docker/libcompose/config"
  5. )
  6. func IsSystemContainer(serviceConfig *composeConfig.ServiceConfig) bool {
  7. return serviceConfig.Labels[config.ScopeLabel] == config.System
  8. }