docker

Reference Docker commands for containers, images, Dockerfiles, and Swarm orchestration.

1|Updated Oct 6, 2017
One-click install
npx skills add https://github.com/crazycs520/note --skill docker-crazycs520
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/crazycs520/note/tree/main
Command: npx skills add https://github.com/crazycs520/note --skill docker-crazycs520

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and quick reference for Docker commands, container management, and Dockerfile creation, simplifying your containerization workflow.

Core Features & Use Cases

  • Command Reference: Access a categorized list of essential Docker commands for building, running, and managing containers and images.
  • Dockerfile Examples: Understand Dockerfile syntax and best practices for creating custom container images.
  • Swarm Management: Learn commands for orchestrating containers with Docker Swarm.
  • Use Case: Quickly recall the exact command to build a Docker image, run a container in detached mode, or deploy a multi-container application using Docker Compose.

Quick Start

Show me how to run a Docker container named 'my-app' from the 'my-image' image, mapping port 8080 on the host to port 80 in the container.

Frequently Asked Questions about docker

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

FAQPage Schema
How do I run a Docker container in detached mode and map host ports?

Run a Docker container in detached mode by passing the -d flag to the run command, using -p to map host ports to container ports for external access.

What is the correct Dockerfile syntax for building a custom image?

Dockerfile syntax defines instructions like FROM for base images and RUN for executing commands, allowing you to build custom container images layer by layer.

How do I deploy a multi-container application using Docker Compose?

Deploy multi-container applications using Docker Compose by defining services, networks, and volumes in a configuration file, then executing the deploy command.

Can I use Docker Swarm to orchestrate containers and manage services?

Docker Swarm provides native clustering and orchestration, allowing you to manage services, scale containers across multiple nodes, and inspect container states.

What is the best way to manage Docker images and inspect container states?

Manage Docker images via build and pull commands, and inspect container states using specific Docker CLI commands that display running processes and configuration details.