util.go 250 B

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