diff --git a/libcontainer/container_linux.go b/libcontainer/container_linux.go index ef713197a70..9ef5efaf419 100644 --- a/libcontainer/container_linux.go +++ b/libcontainer/container_linux.go @@ -675,6 +675,11 @@ func (c *linuxContainer) Checkpoint(criuOpts *CriuOpts) error { OrphanPtsMaster: proto.Bool(true), } + fcg := c.cgroupManager.GetPaths()["freezer"] + if fcg != "" { + rpcOpts.FreezeCgroup = proto.String(fcg) + } + // append optional criu opts, e.g., page-server and port if criuOpts.PageServer.Address != "" && criuOpts.PageServer.Port != 0 { rpcOpts.Ps = &criurpc.CriuPageServerInfo{