TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Road to OCIv2 Images: What's Wrong with Tar? (2019)

80 pointsby goranmoominover 3 years ago

7 comments

gilgad13over 3 years ago
I agree with many of the concerns the author raises, but I&#x27;m left with the question:<p>Given all this, what does layering give us?<p>It gives some deduplication, but only a crude form. It gives some reproducibility from building off a well-known base and tag, but not full reproducibility. It gives some security benefit from building off a well-known base, but not as large a benefit as standard package managers provide.<p>I would be excited to see a image distribution system based off of something like casync, maybe with an initial rootfs formed through image-focused distributions like yocto[1]. The embedded device ecosystem has been concerned with reproducibility, image signing, and incremental updates for awhile and I think their approaches are very applicable to container images.<p>[1]: <a href="https:&#x2F;&#x2F;www.yoctoproject.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.yoctoproject.org&#x2F;</a>
评论 #30184465 未加载
nix23over 3 years ago
Hmm thinking about it...a ZFS-filesystem on a file could solve ~all the problems with the exception of a good performing dedup and shrinking the file&#x2F;device.<p>But really good article, quite interesting tar-history.
评论 #30184379 未加载
评论 #30183782 未加载
rektideover 3 years ago
Great post, but:<p>&gt; <i>How Do We Get It?</i><p>&gt; <i>I’m afraid to find that out, you’ll need to wait until the next instalment. I hope to get it complete in a few weeks (I was hoping to have a PoC available with the next instalment but that’s just a silly goal at this point).</i><p>&gt; <i>If you want a taste though, the general idea is that we can resolve most of the issues I’ve listed and gain most of the properties we want by creating our own format that is built on top of the OCI content-addressable store, and is a Merkle tree with content-defined chunking of file contents. The basic idea is very similar to backup tools like restic or borgbackup. Since OCI has smart pointers, we can define a few new media-types, and then our new format would be completely transparent to OCI image tools (as opposed to opaque tar archives).</i><p>&gt; <i>But you’ll learn all about that next time. Thanks for reading, and happy hacking!</i><p>Any follow-up on this 3 year old post? This appears to be the final entry on cyphar&#x27;s blog. Did this ever happen? I&#x27;ve done some hunting but can&#x27;t find any stated plans for OCIv2 from Cyphar.<p>There was a hack-session in march 2020 on this topic: <a href="https:&#x2F;&#x2F;hackmd.io&#x2F;@cyphar&#x2F;ociv2-brainstorm" rel="nofollow">https:&#x2F;&#x2F;hackmd.io&#x2F;@cyphar&#x2F;ociv2-brainstorm</a> . Really fascinating document. It has a section for each problem, &amp; does a great job citing &amp; discussing prior work in the area. Was a delight to stumble into this. But still seems very formative. It felt like cyphar was already onto a plan, well before this date. I don&#x27;t see any evidence of v2 forming in the official repo, <a href="https:&#x2F;&#x2F;github.com&#x2F;opencontainers&#x2F;image-spec&#x2F;tree&#x2F;main&#x2F;specs-go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;opencontainers&#x2F;image-spec&#x2F;tree&#x2F;main&#x2F;specs...</a> . Cyphar does still seem active in the project.<p>Seems there was a come-together call on the mailing list last June, calling for trying to extend-their-way-forwards rather than do a big revamp&#x2F;rewrite: <a href="https:&#x2F;&#x2F;groups.google.com&#x2F;a&#x2F;opencontainers.org&#x2F;g&#x2F;dev&#x2F;c&#x2F;6DGtH48fGOg&#x2F;m&#x2F;1kUGGhRPBAAJ" rel="nofollow">https:&#x2F;&#x2F;groups.google.com&#x2F;a&#x2F;opencontainers.org&#x2F;g&#x2F;dev&#x2F;c&#x2F;6DGtH...</a>
评论 #30297839 未加载
pid-1over 3 years ago
Since I learned that OCI images are pretty much archives with metadata, I&#x27;ve been thinking about applying that to other stuff.<p>Like, it would be cool to have all my python virtualenvs saved in bundles so they could be reused by other others, without all the container bloat.
评论 #30183815 未加载
评论 #30184056 未加载
评论 #30184109 未加载
dangover 3 years ago
Discussed at the time:<p><i>Road to OCIv2 Images: What&#x27;s Wrong with Tar?</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18965881" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18965881</a> - Jan 2019 (33 comments)
nhoughtoover 3 years ago
Squashfs instead! There was another post about this recently, replace tar with squashfs solves a bunch of problems. Is arguably harder to create and had a smaller ecosystem than tar, but capability wise it would be great.
justinludwigover 3 years ago
The original title, &quot;The Road to OCIv2 Images: What&#x27;s Wrong with Tar?&quot;, is a lot better IMHO. Otherwise, a great history lesson on the tar format, and why it&#x27;s not a great fit for OCI images.
评论 #30165870 未加载