Permalink
Browse files

Merge pull request #1268 from hqhq/use_source_mp

Do not create cgroup dir name from combining subsystems
  • Loading branch information...
2 parents 5d93fed + 0599ac7 commit 361bb0001a07f9af86c2e956ae5189660a1e2b27 @mrunalp mrunalp committed on GitHub Jan 11, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 libcontainer/rootfs_linux.go
@@ -346,7 +346,7 @@ func getCgroupMounts(m *configs.Mount) ([]*configs.Mount, error) {
binds = append(binds, &configs.Mount{
Device: "bind",
Source: filepath.Join(mm.Mountpoint, relDir),
- Destination: filepath.Join(m.Destination, strings.Join(mm.Subsystems, ",")),
+ Destination: filepath.Join(m.Destination, filepath.Base(mm.Mountpoint)),
Flags: syscall.MS_BIND | syscall.MS_REC | m.Flags,
PropagationFlags: m.PropagationFlags,
})

0 comments on commit 361bb00

Please sign in to comment.