CNTR: Lightweight OS Containers

Jörg Thalheim, Pramod Bhatotia, Pedro Fonseca, Baris Kasikci

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Container-based virtualization has become the de-facto standard for deploying applications in data centers. However, deployed containers frequently include a wide-range of tools (e.g., debuggers) that are not required for applications in the common use-case, but they are included for rare occasions such as in-production debugging. As a consequence, containers are significantly larger than necessary for the common case, thus increasing the build and deployment time.
CNTR1 provides the performance benefits of lightweight containers and the functionality of large containers by splitting the traditional container image into two parts: the “fat” image — containing the tools, and the “slim” image — containing the main application. At run-time, CNTR allows the user to efficiently deploy the “slim” image and then expand it with additional tools, when and if necessary, by dynamically attaching the “fat” image.
To achieve this, CNTR transparently combines the two container images using a new nested namespace, without any modification to the application, the container manager, or the operating system. We have implemented CNTR in Rust, using FUSE, and incorporated a range of optimizations. CNTR supports the full Linux filesystem API, and it is compatible with all container implementations (i.e.,Docker, rkt, LXC, systemd-nspawn). Through extensiveevaluation, we show that CNTR incurs reasonable performance overhead while reducing, on average, by 66.6% the image size of the Top-50 images available on Docker Hub.
Original languageEnglish
Title of host publicationProceedings of the 2018 USENIX Annual Technical Conference (USENIX ATC ’18)
PublisherUSENIX Association
Pages199-212
Number of pages14
ISBN (Electronic)978-1-931971-44-7, 978-1-939133-02-1
Publication statusPublished - Jul 2018
Event2018 USENIX Annual Technical Conference - Boston, United States
Duration: 11 Jul 201813 Jul 2018
https://www.usenix.org/conference/atc18

Conference

Conference2018 USENIX Annual Technical Conference
Abbreviated titleUSENIX ATC'18
Country/TerritoryUnited States
CityBoston
Period11/07/1813/07/18
Internet address

Fingerprint

Dive into the research topics of 'CNTR: Lightweight OS Containers'. Together they form a unique fingerprint.

Cite this