<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1438673379101_5621">Hi,</div><div id="yui_3_16_0_1_1438673379101_5621"><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr">I am trying criu docker checkpoint/restore &nbsp;external example (without AUFS) provided by&nbsp;<a href="http://criu.org/Docker#Restore_Prework_for_External_C.2FR" id="yui_3_16_0_1_1438673379101_5738">Docker</a></div><div style="width:450px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px; margin-bottom: 5px; background-color: #ffffff;" contenteditable="false" id="enhancrCard_0" class="link-enhancr-attachment link-enhancr-element richcompose-card"><table class="link-enhancr-element" cellspacing="0" cellpadding="0" border="0" style="width:450px; height:auto; position: relative; display: block;" id="yui_3_16_0_1_1438673379101_5760"><tbody id="yui_3_16_0_1_1438673379101_5759"><tr class="link-enhancr-element" id="yui_3_16_0_1_1438673379101_5864"><td class="link-enhancr-element" colspan="7" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_5863"><div class="link-enhancr-element" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px;" id="yui_3_16_0_1_1438673379101_5862">&nbsp;</div></td></tr><tr class="link-enhancr-element" id="yui_3_16_0_1_1438673379101_5758"><td rowspan="5" class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_6201"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;">&nbsp;</div></td><td rowspan="5" class="link-enhancr-element" style="width: 14px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_5757"><div class="link-enhancr-element" style="width: 14px; background-color: #ffffff; font-size: 14pt;">&nbsp;</div></td><td colspan="2" class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_5866"><div class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 6pt;" id="yui_3_16_0_1_1438673379101_5865">&nbsp;</div></td><td rowspan="5" class="link-enhancr-element" style="width: 20px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_5783"><div class="link-enhancr-element" style="width: 20px; background-color: #ffffff; font-size: 20pt;">&nbsp;</div></td><td class="link-enhancr-element" rowspan="5" width="1" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_5784"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;">&nbsp;</div></td></tr><tr id="yui_3_16_0_1_1438673379101_5779"><td class="link-enhancr-element" colspan="2" style="width: 100%; vertical-align: middle; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';" id="yui_3_16_0_1_1438673379101_5778"><div class="link-enhancr-text-part link-enhancr-element" style="line-height:16.5px; background-color: #ffffff;  width: 414px;" id="yui_3_16_0_1_1438673379101_5782"><div class="link-enhancr-element" style="word-wrap: break-word; word-break: break-all;" id="yui_3_16_0_1_1438673379101_5781"><span class="link-enhancr-element icon  icon-shrink link-enhancr-toggle" id="yui_3_16_0_1_1438673379101_5798"></span><span class="link-enhancr-element icon icon-close link-enhancr-delete" id="yui_3_16_0_1_1438673379101_5780"></span><a href="http://criu.org/Docker#Restore_Prework_for_External_C.2FR" class="link-enhancr-card-urlWrapper link-enhancr-element" style="text-decoration: none !important; color: #000000 !important; line-height: 100%; font-size: 18px; display: block;" id="yui_3_16_0_1_1438673379101_5861"><span class="link-enhancr-element link-enhancr-card-title" style="margin: 0; font-weight: normal;margin-bottom: 3px; font-size: 18px; line-height: 21px; max-height: 43px; color: #000000; overflow: hidden !important; display: inline-block;" id="yui_3_16_0_1_1438673379101_5860">Docker</span></a><div style="font-size: 13px; line-height: 20px; color: #999999; max-height: 81px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';overflow: hidden;" class="link-enhancr-card-description link-enhancr-element" id="yui_3_16_0_1_1438673379101_5799">This HOWTO page describes how to checkpoint and restore a Docker container.</div></div></div></td></tr><tr id="yui_3_16_0_1_1438673379101_5768"><td colspan="2" class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_5767"><div class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 6pt;" id="yui_3_16_0_1_1438673379101_5766"></div></td></tr><tr id="yui_3_16_0_1_1438673379101_5765"><td class="link-enhancr-element" style="vertical-align: middle; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';" id="yui_3_16_0_1_1438673379101_5764"><div class="link-enhancr-element" style="font-size: 0pt;" id="yui_3_16_0_1_1438673379101_5763"><a href="http://criu.org/Docker#Restore_Prework_for_External_C.2FR" class="link-enhancr-card-url link-enhancr-element" style="color: black; text-decoration: none !important;cursor:pointer !important;" target="_blank" id="yui_3_16_0_1_1438673379101_5762"><span class="link-enhancr-element link-enhancr-view-on" style="display: inline-block; line-height: 11px; max-width: 314px; min-width: 254px; overflow: hidden; max-height: 13px; word-break: break-all;" id="yui_3_16_0_1_1438673379101_5753"><span class="link-enhancr-element link-enhancr-mobile-no-resize" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;" id="yui_3_16_0_1_1438673379101_5761">View on <span style="font-weight: bold" class="link-enhancr-view-on-domain" id="yui_3_16_0_1_1438673379101_5859">criu.org</span></span></span></a></div></td><td class="link-enhancr-element" style="vertical-align: middle; width: 100px; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';" id="yui_3_16_0_1_1438673379101_5777"><div class="link-enhancr-element link-enhancr-preview-wrapper" style="max-width: 100px; min-width: 80px; overflow: hidden; text-align: right; line-height: 11px; max-height: 13px; font-size: 0pt;" id="yui_3_16_0_1_1438673379101_5776"><span class="link-enhancr-element link-enhancr-preview-by link-enhancr-mobile-no-resize" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;" id="yui_3_16_0_1_1438673379101_5775">Preview by Yahoo</span></div></td></tr><tr id="yui_3_16_0_1_1438673379101_5771"><td colspan="2" class="link-enhancr-element" style="height: 9px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_5770"><div class="link-enhancr-element" style="height: 9px; background-color: #ffffff; font-size: 9pt;" id="yui_3_16_0_1_1438673379101_5769"></div></td></tr><tr class="link-enhancr-element" id="yui_3_16_0_1_1438673379101_5774"><td class="link-enhancr-element" colspan="7" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;" id="yui_3_16_0_1_1438673379101_5773"><div class="link-enhancr-element" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px" id="yui_3_16_0_1_1438673379101_5772">&nbsp;</div></td></tr></tbody></table></div><div id="yui_3_16_0_1_1438673379101_5621"><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr">The experiment was in the same host. And the restore failed with error:</div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr"><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class="">(00.210352) &nbsp; &nbsp; &nbsp;1: Error (files-reg.c:1055): File usr/bin/bash has bad size 960384 (expect 960392)</div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class="">(00.210357) &nbsp; &nbsp; &nbsp;1: Error (cr-restore.c:255): Can't fixup VMA's fd</div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class="">(00.214642) Error (cr-restore.c:1912): Restoring FAILED.</div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class="">The cause is that the /usr/bin/bash in host and container have different size. While in my mind, restore of container would load the container's image and file system and load the container's bash. Anything wrong with my experiment?&nbsp;</div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class="">Test log and criu log attached. Thank you very much!</div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class="">Best Regards</div><div id="yui_3_16_0_1_1438673379101_5621" dir="ltr" class="">Zhang Fan</div></div></body></html>