Get the latest tech news

Building Containers from Scratch: Layers


Exploring how OCI images represent layers, how layers can modify and delete files from previous layers, and how container runtimes combine layers into a single filesystem.

Finally, layers are often distributed as gzipped tarballs, with the.tar.gz extension, to save storage space and reduce network data transfer. Actually un-tarring each layer into the rootfs directory sequentially, taking care to apply file modifications or whiteout deletes, for each container launched, would be very slow. While image layers are "just" tar archives containing files, it is possible to extend the format with additional capabilities for more efficient storage and transfer.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Scratch

Scratch

Photo of layers

layers

Photo of Building Containers

Building Containers

Related news:

News photo

Building a social network from scratch on a whiteboard

News photo

Building a rocket engine from scratch

News photo

Engineer 'builds a GPU from scratch' in two weeks