- Home
- Skills
- DevOps & Cloud
- Docker 镜像迁移 · Docker Image Migration
Docker 镜像迁移 · Docker Image Migration
规划 Docker 镜像跨仓库、跨架构与跨主机迁移,输出步骤、风险与回滚方案。
$7
Works with the AI tools you already use
Docker 镜像迁移 · Docker Image Migration
Example session with this skill installed
请规划把 12 个服务镜像从 Docker Hub 迁到内网 Harbor,含 arm64 多架构,要求可回滚。
- Read your context and instructions
- Compiled the docker docker image
Docker 镜像迁移方案已生成。
阶段计划
- 盘点:列出 12 个镜像与全部 tag
- 架构:确认 amd64/arm64 manifest 完整性
- 同步:skopeo copy --all 到 Harbor
- 验证:每个镜像跑 smoke test
- 回滚:保留 Docker Hub 源 14 天
关键命令
skopeo copy --all docker://docker.io/app:v1 docker://harbor.local/app:v1
风险与回滚
- 风险:大层传输占带宽 → 夜间执行
- 风险:多架构 manifest 丢失 → 用 --all 同步
- 回滚:改回原 registry 前缀并重建服务
Next steps
- 先迁 1 个低流量镜像做试点。
- 同步后比对 digest。
- 14 天观察期后下线旧仓库。
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
它解决什么问题
小团队经常会遇到不一致的 Docker 镜像迁移过程。开发人员和运维人员之间的手动交接会导致构建中断、环境变量丢失以及过渡期间所有权不明确。
这个技能做什么
- 生成完整的 Docker 迁移计划,包括架构图和分步执行指南。
- 生成可重用的 Dockerfile 模板和 shell 脚本,用于自动图像标记和注册表推送。
- 创建定义团队角色、职责和移交工件的协作清单。
- 维护一致的技术术语表,以确保命名约定在整个堆栈中保持统一。
框架和工具
Docker、Docker Compose、光标编辑器和 shell 脚本 (bash/zsh)。
为什么比裸提示词强
通用的法学硕士通常提供通用的 Docker 命令,而无需团队协作所需的组织上下文。这项技能强制实施结构化工作流程,优先考虑即时可用性和明确的交接点,从而减少团队成员之间的来回沟通。
典型用例
- 将遗留的整体服务迁移到容器化的微服务中。
- 将映像从本地开发环境移动到私人团队注册表。
- 跨不同开发人员工作站标准化 Docker 构建管道。
局限
针对光标编辑器环境进行了优化。它不直接执行实时网络操作或注册表身份验证。
English · 英文介绍
The problem
Small teams often struggle with inconsistent Docker image migration processes. Manual handoffs between developers and ops lead to broken builds, missing environment variables, and unclear ownership during the transition.
What it does
- Generates complete Docker migration plans including architecture diagrams and step-by-step execution guides.
- Produces reusable Dockerfile templates and shell scripts for automated image tagging and registry pushing.
- Creates collaboration manifests that define roles, responsibilities, and handoff artifacts for the team.
- Maintains a consistent technical glossary to ensure naming conventions stay unified across the stack.
Frameworks & tools
Docker, Docker Compose, Cursor Editor, and shell scripting (bash/zsh).
Why this beats prompting it yourself
General-purpose LLMs often provide generic Docker commands without the organizational context needed for team collaboration. This skill enforces a structured workflow that prioritizes immediate usability and clear handoff points, reducing the back-and-forth between team members.
Use cases
- Migrating legacy monolithic services into containerized microservices.
- Moving images from local development environments to private team registries.
- Standardizing Docker build pipelines across different developer workstations.
Known limitations
Optimized for the Cursor editor environment. It does not perform live network operations or registry authentication directly.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean today
- Passed all security checks, Safe to install