Earlier quoted context omitted.
>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…
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.
We reduced a container image from 800GB to 2GB
61–70 of 88 posts
Re: We reduced a container image from 800GB to 2GB
#62I’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.
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.
This is a case of Product Team not working with customers, finding out what is reasonable and allowing system to set reasonable limits.
Re: We reduced a container image from 800GB to 2GB
#63I’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.
Re: We reduced a container image from 800GB to 2GB
#64Earlier quoted context omitted.
That’s nice, but you still shouldn’t be looking into your customer’s containers.
How else do they diagnose issues? Sorry to break it to you, this is absolutely standard across the entire industry.
Re: We reduced a container image from 800GB to 2GB
#65I’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.
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.
Re: We reduced a container image from 800GB to 2GB
#66Fascinating 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?
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.
Re: We reduced a container image from 800GB to 2GB
#67Earlier quoted context omitted.
How else do they diagnose issues? Sorry to break it to you, this is absolutely standard across the entire industry.
Evict the containers, let the customer know and get customer approval to work with their images.
Re: We reduced a container image from 800GB to 2GB
#68Re: We reduced a container image from 800GB to 2GB
#69Earlier quoted context omitted.
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.
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.
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?
Re: We reduced a container image from 800GB to 2GB
#70Is 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, ...