Lean and Mean Docker containers
dive
Our great sponsors
Lean and Mean Docker containers | dive | |
---|---|---|
38 | 90 | |
18,136 | 43,408 | |
1.2% | - | |
9.1 | 7.0 | |
4 days ago | 11 days ago | |
Go | Go | |
Apache License 2.0 | MIT License |
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
dive
-
Mastering Docker Image Optimization: 6 Key Strategies for building Lighter, Faster, and Safer images
Dive is an open-source tool that allows you to explore the various layers of a Docker image. It shows you the content of each layer and helps you identify voluminous or unnecessary parts.
- Optimisation des images Docker: 6 Stratégies clés pour des images plus légeres et plus performantes
-
I reduced the size of my Docker image by 40% – Dockerizing shell scripts
Dive is a great tool for debugging this. I like image reduction work just because it gives me a chance to play with Dive: https://github.com/wagoodman/dive
One easy low hanging fruit I see a LOT for ballooning image sizes is people including the kitchen sink SDK/CLI for their cloud provider (like AWS or GCP), when they really only need 1/100 of that. The full versions of both of these tools are several hundred mb each
- Dive: A tool for exploring a Docker image, layer contents and more
- Dive – A tool for exploring each layer in a Docker image
- FLaNK Stack Weekly for 12 September 2023
-
Dive Into Docker part 4: Inspecting Docker Image
This post is going to be shorter. I'd like to highlight a tool that I really enjoy working with called "Dive" It is an essential tool when working to build and optimize docker containers.
-
Top 10 CLI Tools for DevOps Teams
Whether you work with Docker regularly or even create your own Docker containers, Dive is a great tool for streamlining image sizes, potentially helping you save storage costs and speed up deployments.
- Dive – exploring a Docker image, layer contents, and shrinking a image size
- Dive: A tool for exploring a Docker image's layer contents
What are some alternatives?
minideb - A small image based on Debian designed for use in containers
skopeo - Work with remote images registries - retrieving information, images, signing content
Go random string generator - Flexible and customizable random string generator
buildkit - concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
pipx - Install and Run Python Applications in Isolated Environments
lnav - Log file navigator
gophish - Open-Source Phishing Toolkit
Whaler - Program to reverse Docker images into Dockerfiles
simple-scrypt - A convenience library for generating, comparing and inspecting password hashes using the scrypt KDF in Go 🔑
distroless - 🥑 Language focused docker images, minus the operating system.
memguard - Secure software enclave for storage of sensitive information in memory.
viddy - 👀 A modern watch command. Time machine and pager etc.