docker

Optimize Docker builds and image management with BuildKit, dive, and lazydocker.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/snqb/my-skills --skill docker-snqb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/snqb/my-skills/tree/main/docker
Command: npx skills add https://github.com/snqb/my-skills --skill docker-snqb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Docker workflows often suffer from slow builds, bloated images, and manual debugging. This Skill provides modern Docker tooling and patterns to streamline image optimization, debugging, and BuildKit-based workflows.

Core Features & Use Cases

  • Image optimization using dive and multi-stage builds to reduce final image size.
  • BuildKit-based caching, secrets, and parallel stages to speed up CI/CD.
  • Container management and observability with lazydocker.

Quick Start

Run an optimized multi-stage build with BuildKit and inspect the resulting image with dive.

Frequently Asked Questions about docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce Docker image size using multi-stage builds?

Multi-stage builds reduce Docker image size by copying only necessary artifacts from build stages to the final image. This Skill applies multi-stage patterns and dive to analyze and minimize final image bloat.

How do I speed up Docker builds with BuildKit caching and secrets?

BuildKit speeds up Docker builds by enabling parallel stages, cache mounts, and secure secrets handling. This Skill implements BuildKit workflows to accelerate CI/CD pipelines while maintaining secure Dockerfile patterns.

What is the best way to inspect and debug bloated Docker images?

Inspecting Docker images is best done using dive to analyze layer sizes and wasted space. This Skill utilizes dive for image observability and lazydocker to streamline container management and debugging.

Can I use BuildKit cache mounts to optimize Docker builds in CI environments?

Yes, BuildKit cache mounts optimize Docker builds in CI environments by persisting package caches across runs. This Skill configures cache mounts and parallel stages specifically for faster CI/CD workflows.

How do I add health checks to secure Dockerfile patterns?

Health checks are added to secure Dockerfile patterns to ensure container reliability. This Skill satisfies requirements for health checks and secure configurations alongside image optimization and BuildKit workflows.

Why are my Docker builds slow and how can I analyze container layers?

Docker builds are often slow due to inefficient layer caching and large intermediate images. You can analyze container layers using dive and optimize build speed using BuildKit parallel stages and cache mounts.