docker

Automate Docker container builds, runs, and management with best-practice guidance.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/led8/.codex --skill docker-led8
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/led8/.codex/tree/main/skills/docker
Command: npx skills add https://github.com/led8/.codex --skill docker-led8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Docker-based workflows are often error-prone and hard to scale, making it difficult to consistently build, run, and secure containers across environments.

Core Features & Use Cases

  • Provides guidance for multi-stage builds, non-root users, health checks, and SSL/proxy handling.
  • Covers single-container and multi-service Docker Compose scenarios, development versus production differences, and validation steps.
  • Includes reference patterns and templates for common Dockerfile and docker-compose configurations.

Quick Start

Create a production-ready Dockerfile and a docker-compose.yml that demonstrates a small app with a multi-stage build and health checks.

Frequently Asked Questions about docker

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

FAQPage Schema
How do I create a production-ready Dockerfile with multi-stage builds and non-root users?▼

This Skill provides reference patterns and templates to automate building a production-ready Dockerfile using multi-stage builds and non-root user setup. It includes validation steps to ensure your configurations meet security and build standards.

How do I configure Docker Compose health checks for a multi-service app?▼

You can configure Docker Compose health checks by defining healthcheck parameters in your docker-compose.yml for each service. This Skill covers multi-service Docker Compose scenarios and includes templates for adding health checks to your applications.

What is the best way to validate Dockerfiles and docker-compose configurations?▼

The best way to validate Docker configurations is by applying Hadolint validation for Dockerfiles and docker-compose config checks for compose files. This Skill automates these validation steps to ensure your builds are error-free.

Does this Docker workflow guidance cover SSL and proxy considerations for production?▼

Yes, this Docker workflow guidance covers SSL and proxy handling specifically for production environments. It provides best-practice guidance for managing these configurations alongside environment-variable handling to secure multi-service apps.

How do I handle environment variables in Docker development versus production environments?▼

To handle environment variables across Docker environments, you should separate development and production configurations using distinct environment files. This Skill offers reference patterns for managing environment-variable handling across different deployment contexts.