On Tue, May 26, 2015 at 06:00:52PM +0300, Cyrill Gorcunov wrote:
> We're bindmounting cgroups for container so if say a container
> is having CTID=200 then @cgroups and @mountinfo output will
> contain /200 as a root. Which makes Docker to lookup for
> appropriate directory inside /sys/fs/cgroup/<controller>
> which of course not present because of been bindmounted
> from the node (note we can't bindmount into
> <controller>/<container> here because it confuses container's
> systemd instance and it stuck on boot).
> 
> Thus we simply mangle root here so when one is accessing
> @cgroups or @mountinfo kernel shows '/' instead of $ctid
> which makes both docker and systemd happy.
> 
> https://jira.sw.ru/browse/PSBM-33757
> 
> Signed-off-by: Cyrill Gorcunov <gorcu...@virtuozzo.com>
> CC: Vladimir Davydov <vdavy...@virtuozzo.com>
> CC: Konstantin Khorenko <khore...@virtuozzo.com>
> CC: Pavel Emelyanov <xe...@virtuozzo.com>
> CC: Andrey Vagin <ava...@virtuozzo.com>

Reviewed-by: Vladimir Davydov <vdavy...@parallels.com>
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to