Skip to content

Commit

Permalink
Merge pull request #56 from ncopa/cgroup-parent
Browse files Browse the repository at this point in the history
Set the parent cgroup for docker
  • Loading branch information
kke authored Oct 26, 2023
2 parents 4eac31d + 5e54181 commit bd4e263
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func (c *Cluster) createMachineRunArgs(machine *Machine, name string, i int) []s
}
if docker.CgroupVersion() == "2" {
runArgs = append(runArgs, "--cgroupns", "host",
"--cgroup-parent", "bootloose.slice",
"-v", "/sys/fs/cgroup:/sys/fs/cgroup:rw")

} else {
Expand Down

0 comments on commit bd4e263

Please sign in to comment.