frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

At the end you use Git bisect

https://kevin3010.github.io/git/2025/11/02/At-the-end-you-use-git-bisect.html
57•_spaceatom•1h ago•40 comments

"Why don't you use dependent types?"

https://lawrencecpaulson.github.io//2025/11/02/Why-not-dependent.html
91•baruchel•3h ago•24 comments

Tongyi DeepResearch – open-source 30B MoE Model that rivals OpenAI DeepResearch

https://tongyi-agent.github.io/blog/introducing-tongyi-deep-research/
143•meander_water•6h ago•38 comments

Rats filmed snatching bats from air for first time

https://www.science.org/content/article/rats-filmed-snatching-bats-air-first-time
46•XzetaU8•5d ago•26 comments

Autodesk's John Walker Explained HP and IBM in 1991

https://www.cringely.com/2015/06/03/autodesks-john-walker-explained-hp-and-ibm-in-1991/
71•suioir•4d ago•37 comments

X.org Security Advisory: multiple security issues X.Org X server and Xwayland

https://lists.x.org/archives/xorg-announce/2025-October/003635.html
52•birdculture•5h ago•23 comments

URLs are state containers

https://alfy.blog/2025/10/31/your-url-is-your-state.html
217•thm•7h ago•113 comments

Writing FreeDOS Programs in C

https://www.freedos.org/books/cprogramming/
34•AlexeyBrin•4h ago•11 comments

Anti-cybercrime laws are being weaponized to repress journalism

https://www.cjr.org/analysis/nigeria-pakistan-jordan-cybercrime-laws-journalism.php
15•giuliomagnifico•17m ago•0 comments

Mock – An API creation and testing utility: Examples

https://dhuan.github.io/mock/latest/examples.html
90•dhuan_•6h ago•17 comments

Backpropagation is a leaky abstraction (2016)

https://karpathy.medium.com/yes-you-should-understand-backprop-e2f06eab496b
250•swatson741•13h ago•109 comments

Notes by djb on using Fil-C (2025)

https://cr.yp.to/2025/fil-c.html
211•transpute•12h ago•108 comments

New South Korean national law will turn large parking lots into solar farms

https://electrek.co/2025/11/02/new-national-law-will-turn-large-parking-lots-into-solar-power-farms/
60•thelastgallon•3h ago•34 comments

A prison of my own making

https://jsteuernagel.de/posts/a-prison-of-my-own-making/
33•todsacerdoti•5h ago•6 comments

Go Primitive in Java, or Go in a Box

https://donraab.medium.com/go-primitive-in-java-or-go-in-a-box-c26f5c6d7574
49•ingve•1w ago•19 comments

Visopsys: OS maintained by a single developer since 1997

https://visopsys.org/
424•kome•20h ago•103 comments

Welcome to hell; please drive carefully

https://2earth.github.io/website/20251026.html
65•2earth•5d ago•23 comments

A man who changes the time on Big Ben

https://www.mylondon.news/news/zone-1-news/meet-man-who-changes-time-32715300
19•simmerup•1w ago•12 comments

Matched Clean Power Index

https://matched.energy/blog/matched-clean-power-index-is-live
28•bensg•6h ago•21 comments

Claude Code can debug low-level cryptography

https://words.filippo.io/claude-debugging/
407•Bogdanp•23h ago•190 comments

OpenBSD 7.8 Highlights

https://rsadowski.de/posts/2025/openbsd-78/
18•zdw•1w ago•2 comments

How I use every Claude Code feature

https://blog.sshh.io/p/how-i-use-every-claude-code-feature
405•sshh12•18h ago•145 comments

Updated practice for review articles and position papers in ArXiv CS category

https://blog.arxiv.org/2025/10/31/attention-authors-updated-practice-for-review-articles-and-posi...
475•dw64•1d ago•222 comments

HyperRogue – A non-Euclidean roguelike

https://roguetemple.com/z/hyper/
108•stared•6h ago•28 comments

Pomelli

https://blog.google/technology/google-labs/pomelli/
241•birriel•19h ago•108 comments

FlightAware Map Design

https://andywoodruff.com/posts/2024/flightaware-maps/
79•marklit•6d ago•22 comments

Show HN: Anki-LLM – Bulk process and generate Anki flashcards with LLMs

https://github.com/raine/anki-llm
8•rane•4h ago•1 comments

LM8560, the eternal chip from the 1980 years

https://www.tycospages.com/other-themes/lm8560-the-eternal-chip-from-the-1980-years/
99•userbinator•14h ago•34 comments

Context engineering

https://chrisloy.dev/post/2025/08/03/context-engineering
65•chrisloy•9h ago•34 comments

GHC now runs in the browser

https://discourse.haskell.org/t/ghc-now-runs-in-your-browser/13169
338•kaycebasques•1d ago•116 comments
Open in hackernews

We reduced a container image from 800GB to 2GB

https://sealos.io/blog/reduce-container-image-size-case-study
71•untrimmed•6d ago

Comments

untrimmed•6d ago
Our platform is designed to solve a very specific workflow, and the DevBox is only the first step in that process.

Our users need to connect their local VS Code, Cursor, or JetBrains IDEs to the cloud environment. The industry-standard extensions for this only speak the SSH protocol. So, to give our users the tools they love, the container must run an SSHD to act as the host.

We aren't just a CDE like Coder or Codespaces. We're trying to provide a fully integrated, end-to-end application lifecycle in one place.

The idea is that a developer on Sealos can:

1. Spin up their DevBox instantly. 2. Code and test their feature in that environment (using their local IDE). 3. Then, from that same platform, package their application into a production-ready, versioned image. 4. And finally, deploy that image directly to a production Kubernetes environment with one click.

That "release" feature was how we let a developer "snapshot" their entire working environment into a deployable image without ever having to write a Dockerfile.

topaz0•5h ago
Agree with other commenters that this seems like a bad idea. Why on earth should the release image contain all of the cruft of development?? Why on earth should it contain historical versions of all that cruft??
macNchz•4h ago
This does seem bonkers to me. All but guaranteed to have worse issues than bloated container images in the future.
chuckadams•4h ago
The irony is that Kubernetes already provides a "ssh into any container" ability, and it's provided directly by k8s, no sshd needed (it's not the ssh protocol but it's good enough to get a shell). Not sure it's advisable to do with any user but an admin, but the standard workflow with k8s is not to shell into running containers anyway, it's to rebuild the container and redeploy the pod.
otterley•1h ago
Who are you, exactly? There is practically no publicly available information about your company, other than that it appears to be held by a Chinese entity called Labring.
hsbauauvhabzb•7h ago
This seems very much like a ‘we mis configured our containers; then we realised, then we fixed it, then we blogged about it’ post of very little value.
pandemic_region•7h ago
Right? Blog posts like these makes me question competence instead of attributing it.
chuckadams•4h ago
Competence comes from experience built on lots of screw-ups. I like when people blog their mistakes.
BoredPositron•7h ago
If your image is 800GB you are doing something wrong in the first place.
adastra22•7h ago
You didn't read the article.
BoredPositron•6h ago
I did and the image had problems to begin with. If it's a bad image or a bad configuration of your visor or in the image doesn't matter. If your images can bloat to over 800GB you are doing the basics wrong. Hint: Using commit to create your images...
reddozen•7h ago
Is it spooky that they said they looked inside a customer's image to fix this? A bunch of engineers just had access to their customer's intellectual property, security keys, git repos, ...
trenchpilgrim•7h ago
If you are adding security keys and git repos to your final shipped image you are doing things very wrong - a container image is literally a tarball and some metadata about how to run the executables inside. Even if you need that data to build your application you should use a multi-stage build to include only the final artifacts in the image you ship.

For stuff like security keys you should typically add them as build --args-- secrets, not as content in the image.

cowsandmilk•7h ago
That’s nice, but you still shouldn’t be looking into your customer’s containers.
adastra22•7h ago
How else do they diagnose issues? Sorry to break it to you, this is absolutely standard across the entire industry.
stackskipton•3h ago
Evict the containers, let the customer know and get customer approval to work with their images.
trenchpilgrim•3h ago
What about this case where the container was working but was consuming overhead due to an infrastructure issue? Customer hasn't done anything wrong. If you stop their containers they'll likely leave for a competitor.
Ysx•7h ago
> For stuff like security keys you should typically add them as build args, not as content in the image.

Build args are content in the image: https://docs.docker.com/reference/build-checks/secrets-used-...

hiddew•6h ago
> For stuff like security keys you should typically add them as build args, not as content in the image.

Do not use build arguments for anything secret. The values are committed into the image layers.

tecleandor•6h ago
Yeah, typically, but in this case they're commiting and commiting in the container image, and saving changes from running software. Not only that, they're commiting log files into the image, which is crazy.

The thing here is they're using Docker container images like if they were VM disks and they end up with images with almost 300 layers, like in this case. I think LXC or VMs should be a better case for this (but I don't know if they've tested it or why are they using Docker)

otterley•1h ago
I did a little research on this company. It’s related to (or wholly owned by) a Chinese entity called Labring. LinkedIn shows practically nobody related to the company other than its marketing team. Something smells incredibly fishy.
trenchpilgrim•7h ago
In the comments: People who didn't read the article assuming they were literally building 800GB images (the example in the article is an 11GB image that was amplified by copying behaviors)
progbits•6h ago
In fairness the article is LLM vomit and could be two paragraphs, can't blame people for not reading it.
guywhocodes•5h ago
The TLDR: > We tackled critical container image bloat on our Sealos platform, fixing a severe disk space exhaustion issue by shrinking an 800GB, 272-layer image to just 2.05GB.

They say they made a 800GB container image, so your issue is about singular vs plural?

Regardless, I don't really get why anyone would self report like this. Is next article going to be about how they don't encrypt passwords and when they accidentally dropped prod DB they could restore account from logs because it had the passwords in clear text?

SurceBeats•7h ago
Fascinating deep dive into OverlayFS CoW behavior. The 11GB btmp file getting copied 271 times is a perfect storm scenario. Did they consider mounting /var/log outside the image layers? Seems like that would prevent any log file from causing this amplification. Also interested in image-manip... Does it handle metadata differently than docker export/import?
hug•6h ago
Is it fascinating?

Do people not know that each layer comes with its own downsides?

Do people just do 272 layers and think that it’s normal?

This seems like people discovering that water is wet and fire is hot.

phito•5h ago
I feel like I'm having a LLM fever dream
macNchz•4h ago
Seriously. Honestly this whole thing feels kinda like…using an LLM to write a blog post about debugging weird problems that only exist because the whole platform was built by an LLM in the first place. The multiple top level comments that are clearly written by an LLM are icing on the (layer) cake.
ndsipa_pomu•3h ago
This is less of a deep dive and more an illustration of the worst way to use containers.

Having /var/log set as as a persistent volume would have worked, but ultimately they were using "docker commit" to amend/update their images which is definitely the wrong way to do it.

KronisLV•7h ago
Images don't seem to be working:

https://sealos.io/_next/image?url=.%2Fimages%2Fcontainerd-hi...

https://sealos.io/_next/image?url=.%2Fimages%2Fbloated-conta...

Either way, hope the user was communicated with or alerted to what's going on.

At the same time, someone said that 800 GB container images are a problem in of themselves no matter the circumstances and they got downvoted for saying so - yet I mostly agree.

Most of mine are about 50-250 MB at most and even if you need big ones with software that's GB in size, you will still be happier if you treat them as something largely immutable. I've never had odd issues with them thanks to this. If you really care about data persistence, then you can use volumes/bind mounts or if you don’t then just throw things into tmpfs.

I'm not sure whether treating containers as something long lived with additional commmits/layers is a great idea, but if it works for other people, then good for them. Must be a pain to run something so foundational for your clients, though, cause you'll be exposed to most of the edge cases imaginable sooner or later.

BinaryIgor•6h ago
Interesting, although something about the language makes me think it was written by a LLM; I like the ending though:

"The key insight is to treat container images not as opaque black boxes, but as structured, manipulable archives. Deeply understanding the underlying technology, like the OCI image specification, allows for advanced optimization and troubleshooting that goes far beyond standard tooling. This knowledge is essential for preventing issues like Kubernetes disk space exhaustion before they start."

sunrunner•5h ago
Not a guaranteed tell but I noticed the word "surgically" in the opening paragraphs, and from personal experience I find that appears in ChatGPT a lot for me.

One of the common phrase tropes I find is something like "Here's a set of small, surgical steps you can take to..."

BinaryIgor•4h ago
Yeah, but just also the overall feel of the article is kind of LLM-y and not human in some hard to articulate way
SJC_Hacker•6h ago
I did something on a smaller scale by ripping out large parts of Boost, which was nearly 50% of the image size
perlgeek•6h ago
The real lesson they should learn is to not rely on running images and then using "docker commit" to turn it into an image, but instead to use proper image building tools.

If you absolutely have to do it that way, be very deliberate about what you actually need. Don't run an SSH daemon, don't run cron, don't an SMTP daemon, don't run the suite of daemons that run on a typical Linux server. Only run precisely what you need to create the files that you need for a "docker commit".

Each service that you run can potentially generate log files, lock files, temp files, named pipes, unix sockets and other things you don't want in your image.

Taking a snapshot from a working, regular VM and using that as a docker image is one of the worst ways to built one.

ndsipa_pomu•6h ago
Initially I didn't understand how they were getting the log files into the image. I had no idea that people abuse "docker commit" - do they know nothing about containers? If you want persistent logs, then have a separate volume for them so they can't pollute any image (plus they are readable when the image restarts etc).

When I saw the HN title, I thought this was going to be something subtle like deleting package files (e.g. apt) in a separate layer, so you end up with a layer containing the files and then a subsequent layer that hides them.

veegee•5h ago
Literally. They know nothing about anything, not just containers. This is what happens when you give people who can make a hello world html page actual work.
gobip•5h ago
What if I need cron in my docker container? And ssh? And a text editor? And a monitoring agent? :P

Thankfully LXD is here to serve this need: very lightweight containers for systems, where your app runs in a complete ecosystem, but very light on the ram usage.

curt15•5h ago
>What if I need cron in my docker container? And ssh? And a text editor? And a monitoring agent? :P

How are you going to orchestrate all those daemons without systemd? :P

As you mentioned, a container running systemd and a suite of background services is the typical use case of LXD, not docker. But the difference seems to be cultural -- there's nothing preventing one from using systemd as the entry point of a docker container.

sally_glance•4h ago
fwiw I recently bootstrapped a small Debian image for myself, originally intended to sandbox coding agents I was evaluating. Shortly after I got annoyed by baseline vim and added my tmux & nvim dotfiles, now I find myself working inside the container regularly. It definitely works and is actually not the worst experience if your workflow is cli-focused.
SOLAR_FIELDS•3h ago
My experience is if the tooling is set up right it’s not painful, it’s the fiddling around with volume mounts folder permissions and debug points and “what’s inside the container and what isn’t” etc that is always the big pain point
sally_glance•41m ago
Very accurate - that was one of the steps that caused me to fiddle quite a bit. Had to add an entrypoint to chown the mounts and also some Buildkit cache volumes for all the package managers.

You can skip the uid/chown stuff if you work with userns mappings, but this was my work machine so I didn't want to globally touch the docker daemon.

ndsipa_pomu•5h ago
Ideally, you have a separate docker container for each process (i.e. a separate container for the ssh service, one for cron etc). The text editor can be installed if it's needed - that's not an issue apart from slightly increasing the container size. Most of the time, the monitoring agent would be running on the host machine and setup to monitor aspects of the container - containers should be thought of as running a single process and not as running a VM along with all its services.
veegee•5h ago
I thought this was obvious. Then I remembered that the kids who wrote this blog spam are likely junior JavaScript script kiddies, not real engineers.
larusso•4h ago
My first reaction: 800GB who committed that?!? This size alone screams something is wrong. To be fair even with basic dockerfiles it’s easy to build up a lot of junk. But there should be a general size limit in any workflow that just alerts when something grows out of proportion. We had this in our shop just a few weeks ago. A docker image for some ai training etc grew too big and nobody got alerted about the image final size. It got committed and pushed to jfrog. From there the image synced to a lot of machines. Jfrog informed us that something is off with our amount of data we shuffle around. So on one end this should not happen but it seems to easily end up in production without warning.
SOLAR_FIELDS•3h ago
Given that Jfrog bills on egress for these container images I’m sure you guys saw an eye watering bill for the privilege of distributing your bloated container
larusso•1h ago
Yes. But fair enough that we got a warning the very next day.
bmitch3020•5h ago
This whole article could have been much better written as: learn to build images with a Dockerfile/ Containerfile or similar tooling, and store logs in a volume rather than the image filesystem. Everyone that builds a process around `docker commit` is simply in a race against time before they learn this lesson.
zatkin•5h ago
272 layers in a single image seems really unusual, is that just due to my lack of experience with containers? I've never seen an image with more than maybe a few dozen in my career...
thaumasiotes•5h ago
Well, as described...

> Here's how the disaster unfolded:

> 1. A user's container is under a brute-force attack, and /var/log/btmp grows to 11GB.

> 2. The user performs a commit, creating a new image layer.

> 3. A single new failed login is appended to /var/log/btmp.

> 4. Because of CoW, OverlayFS doesn't just write the new line. It copies the entire 11GB file into the new, upper layer.

> 5. This process repeated 271 times.

So the user is creating hundreds of layers for unclear reasons. The article refers to this as "exponential growth", but for that to be the case those commits would need to be triggered in proportion to the number of existing layers, which seems unlikely. Assuming the commits are caused by the user for reasons unrelated to the size of the existing image, this is growth that is quadratic† (in the number of layers; it's hard to characterize as a function of time or whatever), and it'd be nice to know why there were so many layers.

† Note that while the growth is technically quadratic, I don't think that impacted them. They say that the problem occurred when one 11GB file got copied into each of 272 image layers. That would require 2,992 GB, but they also say that the image exhibiting this problem was only 800GB.

I suspect that the answer here is that only some of the layers modified (and therefore copied) the log file. Probably about 72 of the layers. This is more like growth that's linear (still technically slightly superlinear, but probably not quadratic) in the number of failed SSH login attempts. ~75% of layers aren't contributing to the problem at all.

paholg•4h ago
You can build docker images with nix, in which case you can have every dependency be its own layer.

That is clearly not what these people are doing, though.

kayodelycaon•4h ago
I can't think of anything that would justify that many layers. If I have that much complexity, I would split up the container or start writing bash scripts.

The automation of containers looks simple but developers with systems experience know the actual complexity of operating systems and running applications.

People who know javascript but don't know how a file system works can build and deploy containers. They just copy and paste stuff until it runs. The automation of containers makes brute force iteration a viable option. It was a lot more difficult trying to run a Linux server, which would force you to learn something or use a platform as a service instead.

cebert•5h ago
I’m shocked that a company would share how amazingly bad their layer management had become. This may be a great internal blog, but I wouldn’t share it publicly.
mauvehaus•5h ago
On the other hand, I'm impressed that a company is owning up to the problem. Is it a dumb problem to have? Definitely. Are they the only ones to have it? Almost certainly not.

People are going to use the tools at their disposal, and they aren't all going to learn their tools at a high level. Think of every insane misuse of Excel you've ever heard of, for instance.

IT has the choice in this case to mitigate, or limit the access to the tools. Choosing mitigation prevents the growth of shadow IT and helps ensure that IT remains a trusted partner and not an obstacle to be worked around. This reflects well on the company, especially if they then go and provide better training to their users as well.

wizzwizz4•4h ago
Yeah: I can usually tell from public information when a company has problems like this, and that makes me disinclined to want to work for them. Seeing how they deal with those problems, though? … Well, in this case, it shows that the company doesn't know how to deal with these problems properly, and thinks ChatGPT is appropriate for write-ups, so I still might not want to work there – but I might bother interviewing there, just to check how deep these problems go. (If they're just a case of "they didn't know better, but they're happy to learn", then I might actually take the job offer: an environment where others are willing to learn without fear of losing face is an environment where I can learn without worrying about that either.)
cedws•4h ago
I'm confused. I had the same initial reaction as you and then read further and it sounds like the image was actually provided by a client?

    > The problematic user image had an astonishing 272 layers, each representing a commit operation.
stackskipton•3h ago
This sounds like a case of "We are in growth mode and will accept any garbage the customer will throw at us" without calculating the tech debt costs.

As someone who is currently there, it's very frustrating place.

move-on-by•2h ago
Oh just wait till it’s time for your company to stop the ‘growth mode’ shenanigans and get serious about acceptable levels of tech debt and feature bloat. It’s where we are.

You can’t just flip a switch. There is no “Hey, that was fun, but it’s time to start designing these things with a purpose and vision”. Beyond the totally unreasonable expectations that have been set by Product and C-level- you still have the mountain of tech debt that is coming due and changes slow to a crawl or outages skyrocket or both. Plus, hiring has been based on ‘getting things done’, so you have this group of people who are actually really skilled in hacking things together and getting it out the door. It’s tough and calls for an entire culture shift. How do you stop being a reactionary startup and become vision-based and purposeful organization?

sally_glance•4h ago
From what I understood they provide a kind of shared platform where anyone can run things, and it was one of their clients/users performing the commits.
stackskipton•3h ago
So they don't set reasonable expectations with the customers and accept any and all garbage. As Ops person, this is a path to Ops hell as customers throw more and more garbage at you and toil dealing with customer problems becomes unbearable.

This is a case of Product Team not working with customers, finding out what is reasonable and allowing system to set reasonable limits.

ndsipa_pomu•3h ago
It's like a car repair company sharing how they dramatically improved ride comfort, speed and fuel usage by using air to fill tyres rather than concrete.
collingreen•3h ago
After asking chatgpt for suggestions and trying them all.
cannonpalms•5h ago
TIL of `docker commit`. What is the use case for this command? Quick debugging or something, to share with a coworker?
mystifyingpoi•5h ago
Same as snapshotting a vm, or as an interactive version of "docker build". But rarely useful, since most workflows don't really need statefulness.
macNchz•4h ago
It seems like their whole platform depends on it though… to my read they’re providing their users with cloud devcontainers to connect to from their local VS Code, then deploying to production by snapshotting the container with docker commit. Those containers have SSH enabled to the internet, which is where all of the auth logs came from that wound up baked into the images.
andai•5h ago
I'm not a sysadmin but doesn't the root cause sound like a missing fail2ban or something? (Sounds like a whole bunch of problems stacked on top of each other honestly.)
Uvix•5h ago
Yes, the article does list multiple root causes, including that one.
thaumasiotes•5h ago
What's up with the images that are supposed to appear in the article? They appear to be coded to load from "./images/containerd-high-disk-io-iotop.png", but https://sealos.io/blog/images/containerd-high-disk-io-iotop.... and https://sealos.io/images/containerd-high-disk-io-iotop.png both fail.

(And indeed, the images are broken in Firefox and Edge. Is there another browser where they're not broken?)

apexalpha•3h ago
Title makes it seem like 800GB images are a normal occurance: it is not.

2GB is the expected and default size for a docker image. It's a bit bloated even.

gkfasdfasdf•3h ago
> image-manip squash: This is the key to reclaiming disk space and the core of our strategy to squash the image layers. The tool creates a temporary container, applies all 272 layers in sequence to an empty root filesystem, and then exports the final, merged filesystem as a single new layer. This flattens the image's bloated history into a lean, optimized final state.

Wouldn't a multistage Dockerfile have accomplished the same thing? smth like

FROM bigimage

RUN rm bigfile

FROM scratch

COPY --from=0 / /

throwaway106382•2h ago
This is crazy. And they created an entire business around containers not even understand the basics of how building them work? Yikes.