mirror of
https://github.com/rancher/os.git
synced 2025-06-24 05:57:03 +00:00
12 lines
250 B
Go
12 lines
250 B
Go
package docker
|
|
|
|
import (
|
|
composeConfig "github.com/docker/libcompose/config"
|
|
"github.com/rancher/os/config"
|
|
)
|
|
|
|
func IsSystemContainer(serviceConfig *composeConfig.ServiceConfig) bool {
|
|
return serviceConfig.Labels[config.SCOPE] == config.SYSTEM
|
|
|
|
}
|