Skip to content

Commit 361bb00

Browse files
author
Mrunal Patel
authored
Merge pull request #1268 from hqhq/use_source_mp
Do not create cgroup dir name from combining subsystems
2 parents 5d93fed + 0599ac7 commit 361bb00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/rootfs_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func getCgroupMounts(m *configs.Mount) ([]*configs.Mount, error) {
346346
binds = append(binds, &configs.Mount{
347347
Device: "bind",
348348
Source: filepath.Join(mm.Mountpoint, relDir),
349-
Destination: filepath.Join(m.Destination, strings.Join(mm.Subsystems, ",")),
349+
Destination: filepath.Join(m.Destination, filepath.Base(mm.Mountpoint)),
350350
Flags: syscall.MS_BIND | syscall.MS_REC | m.Flags,
351351
PropagationFlags: m.PropagationFlags,
352352
})

0 commit comments

Comments
 (0)