[CRIU] failure dumping nginx in docker container

Cyrill Gorcunov gorcunov at gmail.com
Mon Jul 6 01:35:22 PDT 2015


On Fri, Jul 03, 2015 at 12:04:12AM +0300, Cyrill Gorcunov wrote:
> On Thu, Jul 02, 2015 at 09:45:09AM -0700, Ross Boucher wrote:
> >    Yes, thanks for your patch Andrew. Cyrill, here are two sets of
> >    dump/restore logs. The one's titled "working" are with Andrew's patch, the
> >    one's titled "not-working" are from master (as of yesterday). 
> >    https://gist.github.com/boucher/3bcb9f0c98d05a819974
> >    (even though it says "not-working.dump" the dump part works just fine, its
> >    only the restore that fails)
> >    These were produced by building docker with criu support and running the
> >    container with the default command from the "nginx" image.
> 
> Could you please give the patch attached a shot?

Ross, I'm sorry for delay, been busy. Could you please either run
this patch (attached) or simply run restore with --manage-cgroups=soft
(which is the same), and tell me if it helps.
-------------- next part --------------
diff --git a/include/cr_options.h b/include/cr_options.h
index 9ab8bbaaef64..bf57ef947a1e 100644
--- a/include/cr_options.h
+++ b/include/cr_options.h
@@ -31,7 +31,7 @@ struct cg_root_opt {
 #define CG_MODE_FULL		(1u << 3)
 #define CG_MODE_STRICT		(1u << 4)
 
-#define CG_MODE_DEFAULT		(CG_MODE_IGNORE)
+#define CG_MODE_DEFAULT		(CG_MODE_SOFT)
 
 struct cr_options {
 	int			final_state;


More information about the CRIU mailing list