Lean and Mean Docker containers
minideb
Our great sponsors
Lean and Mean Docker containers | minideb | |
---|---|---|
38 | 6 | |
18,165 | 1,966 | |
1.3% | 1.2% | |
9.1 | 6.9 | |
3 days ago | 5 days ago | |
Go | Shell | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Lean and Mean Docker containers
-
Is updating software in Docker containers useful?
And if you want to make the container quickly secure without bloats, maybe give this a try https://github.com/slimtoolkit/slim
-
An Overview of Kubernetes Security Projects at KubeCon Europe 2023
Slim.ai presents the data in a more user friendly way than many of the other tools in this post. On top of its open source SlimToolkit for identifying the contents of an image, Slim.ai uses Trivy for vulnerability scanning.
-
Tips for reducing Docker image size
What about https://github.com/slimtoolkit/slim?
-
package a poetry project in a docker container for production
A last practice that I do not use at all and which may interest you is to use slim toolkit to keep only the useful elements in your final image.
-
Standard container sizes
Anyone tried using https://github.com/docker-slim/docker-slim To minify an image?..
- DockerSlim - Optimize Your Containerized App Dev Experience. Better, Smaller, Faster, and More Secure Containers Doing Less! Minify Docker Images by up to 30x.
- A practical approach to structuring Golang applications
- How to optimize docker image size?
-
M1: Docker doesn't find shared x64 shared objects even though platform was specified
Distroless images are better left for people with serious need for lightweight images and good Linux knowledge because they require lot of planning with the build so that they stay light and work. If you need lighter images but docker isn't your main tool and you can't afford to take hours and hours of practicing different build strategies you can check docker-slim (https://dockersl.im/). With this tool you can easily size down the images.
-
I deleted 78% of my Redis container and it still works
Maybe this would help in that regard: https://github.com/docker-slim/docker-slim
minideb
-
Setting up a packaging environment for Alpine Linux (introducing alpkg)
postgres:15-bullseye 2bb008a38e7c 379MB
[1] https://github.com/bitnami/minideb
However, it is sometimes a good idea to benchmark the speed of different images, as sometimes a significant speed loss is possible.
-
I deleted 78% of my Redis container and it still works
as is stated initially, that goes back to how bitnami is building its Docker images, basing on a set of debian packages (minideb) - there's also a shell library/framework embedded that does useful things, but that makes you read more code when you go check how the sausage is made. That minideb is the basis for the higher CVE count compared to scratch or alpine images.
> it’s a well-kept secret that no one wants to talk about
the maintainer side most casual docker image users aren't aware of I'd rephrase, but bitnami at least documents the issue
https://github.com/bitnami/minideb#security
https://docs.bitnami.com/kubernetes/open-cve-policy/
- Minideb: A small image based on Debian designed for use in containers
-
Minimal base images roundup
Ah, yeah it's a little more confusing because it's using the debootstrap tool (https://wiki.debian.org/Debootstrap) to build the container image filesystem. You can see all the gory logic here: https://github.com/bitnami/minideb/blob/master/buildone and https://github.com/bitnami/minideb/blob/master/mkimage It's a bunch of shell scripting that's not really meant to be interpreted by anyone that isn't a debian expert though, so don't feel bad if it looks really confusing. I think the overall thing is that minideb installs the absolute bare minimum system with debootstrap and even strips out a few essential packages like trusted SSL CAs, etc. If you need anything (including those essential packages) you're meant to just install_packages install them--it's all using the same apt sources and packages as debian.
-
Microsoft repo installed on all Raspberry Pi’s
Do you know why this is? Because it's part of the base file system. Here is a line from the build script for minideb (basically the smallest image needed to run a container): https://github.com/bitnami/minideb/blob/e4f37e8a5d271d93b79c3f4caa49c4ceb95d8eec/mkimage#L52
What are some alternatives?
Go random string generator - Flexible and customizable random string generator
stego-toolkit - Collection of steganography tools - helps with CTF challenges
pipx - Install and Run Python Applications in Isolated Environments
graylog-docker - Official Graylog Docker image
dive - A tool for exploring each layer in a docker image
bitnami-docker-drupal - Bitnami Docker Image for Drupal
gophish - Open-Source Phishing Toolkit
pi-gen - Tool used to create the official Raspberry Pi OS images
simple-scrypt - A convenience library for generating, comparing and inspecting password hashes using the scrypt KDF in Go 🔑
SSDB - SSDB - A fast NoSQL database, an alternative to Redis
memguard - Secure software enclave for storage of sensitive information in memory.
docker-dropbox - :whale: Dropbox in a Docker container