mirror of
https://github.com/rancher/os.git
synced 2025-06-25 06:21:33 +00:00
12 lines
242 B
Go
12 lines
242 B
Go
package docker
|
|
|
|
import (
|
|
"github.com/docker/libcompose/project"
|
|
"github.com/rancher/os/config"
|
|
)
|
|
|
|
func IsSystemContainer(serviceConfig *project.ServiceConfig) bool {
|
|
return serviceConfig.Labels.MapParts()[config.SCOPE] == config.SYSTEM
|
|
|
|
}
|