Re:I deleted 78% of my Redis container and it still works
by golergka on Saturday July 16, 2022 @05:09AM
(#32116366)
They didn't delete a part of container, they deleted a part of the docker file. Actually removing data from already built container image, as title suggests, would be much more impressive.
[ Parent
| on HN ]
Re:I deleted 78% of my Redis container and it still works
by capableweb on Saturday July 16, 2022 @05:59AM
(#32116577)
Yeah, I guess that's true.
The final result is a 78% smaller docker image, not container. But the way they achieve it, is by running a container of the image, running the functional test suite, then remove everything that was unused when the test suite ran, creating a new image from the results of the removal.
I don't think the title is purposefully misleading, it's just incorrect by mistake (confusing image/container).
Re:I deleted 78% of my Redis container and it still works
by golergka on Saturday July 16, 2022 @07:12AM
(#32116951)
TBH, I thought that they would delete a part of a running container, something to do with de-allocating memory pages in runtime and all that low-level C magic, but now I see that it was just a really weird way to read this on my part.
Re:I deleted 78% of my Redis container and it still works
by cycomachead on Saturday July 16, 2022 @08:54AM
(#32117549)
No I read it that way too.
Re:I deleted 78% of my Redis container and it still works
by tluyben2 on Saturday July 16, 2022 @08:53AM
(#32117542)
> then remove everything that was unused when the test suite ran
What tooling does one use to determine this? How can you see what files are being hit or not? Ptrace?
Edit; I RTFA and think that’s the product they sell. But how would one go about this without their product?
Re:I deleted 78% of my Redis container and it still works
by capableweb on Saturday July 16, 2022 @10:02AM
(#32118188)
My guess would be a combination of ptrace/strace/overriding libc and/or eBPF.
Re:I deleted 78% of my Redis container and it still works
by abdusco on Saturday July 16, 2022 @05:21AM
(#32116405)
Maybe this would help in that regard: https://github.com/docker-slim/docker-slim
Re:I deleted 78% of my Redis container and it still works
by codervinod on Saturday July 16, 2022 @12:25PM
(#32119529)
Docker slim would help in limited ways. EBF filtering fails at scale and has I here t limitations.
Re:I deleted 78% of my Redis container and it still works
by codervinod on Saturday July 16, 2022 @12:23PM
(#32119514)
We deleted files from a pre-built container and not Dockerfile.