mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
This implements cgroup.Apply() using the systemd apis. We create a transient unit called "docker-$id.scope" that contains the container processes. We also have a way to set unit specific properties, currently only defining the Slice to put the scope in. Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
16 lines
209 B
Go
16 lines
209 B
Go
// +build !linux
|
|
|
|
package cgroups
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func useSystemd() bool {
|
|
return false
|
|
}
|
|
|
|
func systemdApply(c *Cgroup, pid int) (ActiveCgroup, error) {
|
|
return nil, fmt.Errorf("Systemd not supported")
|
|
}
|