docker

Write efficient, secure Dockerfiles and Docker Compose configurations.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/bswrundquist/devtools --skill docker-bswrundquist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/bswrundquist/devtools/tree/main/src/devtools/templates/claude/user/.claude/skills/docker
Command: npx skills add https://github.com/bswrundquist/devtools --skill docker-bswrundquist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write efficient, secure, and well-structured Dockerfiles and container configurations, optimizing build times and reducing image sizes.

Core Features & Use Cases

  • Dockerfile Best Practices: Learn about layer ordering for cache optimization, multi-stage builds, and security hardening.
  • GPU Container Patterns: Understand how to configure containers for machine learning workloads using NVIDIA CUDA.
  • Docker Compose: Examples for development setups and health checks.
  • Debugging: Common commands for inspecting and troubleshooting containers.

Quick Start

Use the docker skill to write an efficient Dockerfile for a Python application.

Frequently Asked Questions about docker

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

FAQPage Schema
How do I write an efficient Dockerfile with multi-stage builds?

Layer caching in Dockerfiles is optimized by ordering instructions from least to most frequently changing. Placing dependency installation before source code copying ensures earlier layers are reused during rebuilds, significantly reducing build times.

How do I configure NVIDIA CUDA for GPU containerization?

GPU containerization for machine learning workloads requires configuring Docker to leverage NVIDIA CUDA drivers. This setup enables containers to access host GPU hardware, accelerating deep learning training and inference processes directly within the containerized environment.

What's the best way to structure Docker Compose configurations for development?

Docker Compose configurations for development are best structured using health checks and multi-container setups. This approach defines service dependencies, ensures containers are ready before accepting traffic, and orchestrates local development environments effectively.

What are common commands for debugging and troubleshooting containers?

Dockerfile security hardening involves running containers as non-root users and minimizing the attack surface by using slim base images. Removing unnecessary packages and tools reduces potential vulnerabilities within the containerized application environment.