docker

Docker standardizes software delivery by packaging apps into containers. In 2025, Docker emphasizes BuildKit for high-performance builds and Docker Scout for supply chain security.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "docker" with this command: npx skills add g1joshi/agent-skills/g1joshi-agent-skills-docker

Docker

Docker standardizes software delivery by packaging apps into containers. In 2025, Docker emphasizes BuildKit for high-performance builds and Docker Scout for supply chain security.

When to Use

  • Local Development: Replicate production environments locally (docker compose ).

  • CI/CD: Standard unit of deployment for 99% of modern pipelines.

  • Legacy Migration: Wrap old apps in containers to extend their life.

Quick Start (BuildKit)

syntax=docker/dockerfile:1

FROM node:22-alpine AS base WORKDIR /app COPY package*.json ./

FROM base AS deps RUN npm ci

FROM base AS release COPY --from=deps /app/node_modules ./node_modules COPY . . CMD ["node", "index.js"]

Core Concepts

BuildKit

The modern build engine (default in 2025). Features concurrent build steps, secret mounting, and cache exports. DOCKER_BUILDKIT=1 docker build .

Multi-stage Builds

Keep images tiny by separating "build" environment (compilers, SDKs) from "runtime" environment (minimal OS).

Docker Compose

Define multi-container apps. docker compose up -d --watch (New watch mode syncs files continuously).

Best Practices (2025)

Do:

  • Use docker init : Generates best-practice Dockerfiles and .dockerignore for your language.

  • Use Distroless / Alpine: Minimize attack surface.

  • Scan with Docker Scout: Check for CVEs early in the pipeline.

Don't:

  • Don't run as Root: Use USER node or create a specific user in the Dockerfile.

  • Don't leak secrets: Use --mount=type=secret during build, never COPY .env .

References

  • Docker Documentation

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

docker

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

claude

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

mariadb

No summary provided by upstream source.

Repository SourceNeeds Review