
Squashing Docker images with Buildx
Learn how to squash Docker images using Buildx to create smaller, more efficient images by consolidating layers.

Learn how to squash Docker images using Buildx to create smaller, more efficient images by consolidating layers.

Learn how to run Google’s Gemini CLI in a Docker container to avoid installing Node.js and its dependencies directly on your system. This guide provides a simple setup, a recommended shell function for seamless integration, and usage examples.

Learn how to benchmark Docker registry performance using the Hyperfine CLI tool. A simple way to compare image pull speeds between registries like Artifactory, Harbor, Docker Hub, and Quay.
](https://gagor.pro/2025/01/efficient-dockerfile-templating-for-complex-build-scenarios/images/cover.webp)
Why even consider templating Dockerfiles? Dockerfiles revolutionized the industry with their simplicity. Each instruction creates a new layer in the image, which is automatically cached. This process integrates well with SCM, where you “commit” the results of one stage and move forward with other changes. The process can be easily parameterized with ARG instructions, similar to ENV but provided during the build. This allows for creating highly flexible builds. For most users, this is more than sufficient. However, there’s a notable exception: Docker base images. ...
](https://gagor.pro/2024/03/how-old-are-official-docker-images-2024-edition/images/cover.webp)
Discover the current age and update status of various official Docker images, including CentOS, Ubuntu, and Debian, in the 2024 edition of this analysis.
](https://gagor.pro/2024/03/best-practices-for-writing-dockerfiles-follow-filesystem-hierarchy-standard/images/cover.webp)
Learn best practices for writing Dockerfiles by following the Filesystem Hierarchy Standard (FHS) to enhance organization and maintainability of your Docker images.
](https://gagor.pro/2024/03/automatic-updates-of-docker-images-with-renovate-bot/images/cover.webp)
Learn how to automate Docker image updates using Renovate Bot, a versatile tool that supports various package managers and custom dependency links.
](https://gagor.pro/2024/02/best-practices-for-patching-and-deprecating-docker-images/images/cover.webp)
Learn the best practices for patching and deprecating Docker images to maintain security and stability in your DevOps workflows.

Learn how to run x86-64 Docker images on Apple’s MacBook with M1/M2/M3 CPUs by setting the DOCKER_DEFAULT_PLATFORM environment variable.
](https://gagor.pro/2024/01/checking-compressed-size-of-docker-image/images/cover.webp)
Learn how to check the compressed size of Docker images to optimize download and startup times, using a simple bash function for accurate measurements.