mirror of
https://github.com/rancher/os.git
synced 2025-09-06 17:22:34 +00:00
Move around code for better clarity
This commit is contained in:
committed by
niusmallnan
parent
2f50b7b178
commit
1f50386828
10
pkg/docker/util.go
Normal file
10
pkg/docker/util.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package docker
|
||||
|
||||
import (
|
||||
composeConfig "github.com/docker/libcompose/config"
|
||||
"github.com/rancher/os/config"
|
||||
)
|
||||
|
||||
func IsSystemContainer(serviceConfig *composeConfig.ServiceConfig) bool {
|
||||
return serviceConfig.Labels[config.ScopeLabel] == config.System
|
||||
}
|
Reference in New Issue
Block a user