跳到正文
TakoAPI
返回技能列表

docker-skill

由 runeweaverstudios 提供

DevOps & Cloud
410下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Installs and uses Docker reliably with official docs.

描述

该技能的功能

Guides installation and use of Docker across macOS, Linux, and Windows. Covers Docker Desktop and Docker Engine setup, Dockerfile authoring, building and running containers, and docker compose workflows. Fetches from official Docker docs to ensure accuracy on version-specific install steps and CLI syntax.

Fetching from canonical Docker docs at runtime avoids stale training data for install steps and CLI flags that change between releases.

何时使用

  • Installing Docker Desktop on a new Mac
  • Writing a Dockerfile for a Node.js app
  • Running a containerized database locally
  • Debugging a container that won't start
  • Setting up multi-service apps with docker compose

示例工作流

输入

User asks: how do I containerize and run my app locally?

智能体
  1. 1

    Fetch the Dockerfile reference from docs.docker.com/reference/dockerfile/

  2. 2

    Write a Dockerfile in the project root based on the app's runtime

  3. 3

    Run docker build -t my-app . to build the image

  4. 4

    Run docker run -d -p 127.0.0.1:3000:3000 my-app to start the container

  5. 5

    Verify with docker ps and open http://localhost:3000

输出

App running in a local container, accessible on port 3000

安装

clawhub install runeweaverstudios/docker-skill

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接