{"id":5499,"date":"2014-03-30T23:08:36","date_gmt":"2014-03-30T23:08:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-it-safe-to-extract-the-root-filesystem-of-a-docker-io-image-and-use-it-in-a-chroot-collection-of-common-programming-errors\/"},"modified":"2014-03-30T23:08:36","modified_gmt":"2014-03-30T23:08:36","slug":"is-it-safe-to-extract-the-root-filesystem-of-a-docker-io-image-and-use-it-in-a-chroot-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-it-safe-to-extract-the-root-filesystem-of-a-docker-io-image-and-use-it-in-a-chroot-collection-of-common-programming-errors\/","title":{"rendered":"Is it safe to extract the root filesystem of a Docker.io image and use it in a chroot?-Collection of common programming errors"},"content":{"rendered":"<p>I have recently discovered Docker, and I think it&#8217;s a great tool for managing my runtime environments. However, I also have some OpenVZ VPS&#8217;es that don&#8217;t support LXC, so I&#8217;m thinking about using <code>docker export<\/code> to export the filesystem of an image, extract the resulting tarball to a directory in the VPS, and then chroot into that directory and run the services inside the image.<\/p>\n<p>Is it safe to do this? What customizations does Docker make to the filesystem of its image (I can see a <code>.dockerinit<\/code> file in the root directory at first glance)? Any tips &amp; pitfalls of this approach?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have recently discovered Docker, and I think it&#8217;s a great tool for managing my runtime environments. However, I also have some OpenVZ VPS&#8217;es that don&#8217;t support LXC, so I&#8217;m thinking about using docker export to export the filesystem of an image, extract the resulting tarball to a directory in the VPS, and then chroot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5499","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5499"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5499\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}