Cimplifier: automatically debloating containers

V Rastogi, D Davidson, L De Carli, S Jha… - Proceedings of the 2017 …, 2017 - dl.acm.org
Proceedings of the 2017 11th Joint Meeting on Foundations of Software …, 2017dl.acm.org
Application containers, such as those provided by Docker, have recently gained popularity
as a solution for agile and seamless software deployment. These light-weight virtualization
environments run applications that are packed together with their resources and
configuration information, and thus can be deployed across various software platforms.
Unfortunately, the ease with which containers can be created is oftentimes a double-edged
sword, encouraging the packaging of logically distinct applications, and the inclusion of …
Application containers, such as those provided by Docker, have recently gained popularity as a solution for agile and seamless software deployment. These light-weight virtualization environments run applications that are packed together with their resources and configuration information, and thus can be deployed across various software platforms. Unfortunately, the ease with which containers can be created is oftentimes a double-edged sword, encouraging the packaging of logically distinct applications, and the inclusion of significant amount of unnecessary components, within a single container. These practices needlessly increase the container size-sometimes by orders of magnitude. They also decrease the overall security, as each included component-necessary or not-may bring in security issues of its own, and there is no isolation between multiple applications packaged within the same container image. We propose algorithms and a tool called Cimplifier, which address these concerns: given a container and simple user-defined constraints, our tool partitions it into simpler containers, which (i) are isolated from each other, only communicating as necessary, and (ii) only include enough resources to perform their functionality. Our evaluation on real-world containers demonstrates that Cimplifier preserves the original functionality, leads to reduction in image size of up to 95%, and processes even large containers in under thirty seconds.
ACM Digital Library