「在我电脑上明明能跑」——因为少了Docker。帮你写Dockerfile、构建镜像、配置多环境、编排docker-compose,从本地开发到服务器部署一条龙。支持Node.js/Python/Go/Java/前端全栈,覆盖CI/CD集成、安全加固、监控告警,告别环境不一致的噩梦。 触发词:Docker部署、容...
Integrations
Dcc Docker Container Control
Try itFast manual CI for Docker Compose apps. Use "dcc deploy APP" to fetch the app's latest Git commit, build it, deploy it, restart containers, and verify status on a known Docker server.
What it does
Fast manual CI for Docker Compose apps. Use "dcc deploy APP" to fetch the app's latest Git commit, build it, deploy it, restart containers, and verify status on a known Docker server.
The skill document
DCC Docker Container Control
Use DCC as a fast manual alternative when a traditional CI pipeline is unavailable or too slow.
Fast path
When the user says:
dcc deploy website_app
run this on the known Docker server:
sudo /opt/docker-container-control deploy website_app
Do the work immediately. The controller finds the app under /opt, fast-forward pulls its latest Git commit, pulls images, builds, starts/restarts the Compose deployment, waits for it to become running/healthy, and prints final status.
Docker server
Resolve the server from the request, current thread, or authoritative environment documentation.
If the Docker server is unknown or ambiguous, ask which Docker server to use before proceeding. Never guess.
Use the configured SSH helper. Run remote deployment commands with a bounded timeout long enough for builds to finish. If the local SSH process is interrupted, verify on the remote server whether the deployment command is still running.
Install the controller when needed
The bundled controller is docker-container-control at the skill root. Legacy installations may place it at scripts/docker-container-control.
Check the remote server:
test -x /opt/docker-container-control
If missing:
- Locate the bundled controller.
- Validate it locally with
python3 -m py_compile. - Copy it to a temporary path on the Docker server.
- Install it as root-owned mode
755at/opt/docker-container-control. - Verify with
sudo /opt/docker-container-control list. - Continue the user's requested DCC action without making them repeat it.
If an existing remote controller differs from the bundled version, do not silently overwrite it. Report the difference and ask before replacing it.
Commands
dcc deploy— get the latest Git commit, pull images, build, deploy, restart, wait for health, and show status.dcc dry-run— show the Git and Compose deployment plan without changing containers.dcc list— list detected deployments and usable app names.dcc status— show Compose status.dcc restart— restart the existing Compose deployment and verify health.dcc recreate— rebuild and force-recreate the Compose deployment, then verify health.
Map them directly to:
sudo /opt/docker-container-control [app]
Deployment names can be the app folder name, Compose project name, or running container name. Use exact names. If no deployment matches or more than one matches, show the detected names and ask the user to choose.
Deployment behavior
For a Git checkout, deploy:
- Refuses to run when tracked files have uncommitted changes.
- Runs
git fetch --prune origin. - Runs
git pull --ff-only. - Runs Compose image pull with failures tolerated.
- Runs
docker compose up -d --build. - Waits up to 120 seconds for discovered containers to be running and healthy.
- Prints final Compose status.
A non-Git app skips the Git step and still pulls/builds/starts the Compose deployment.
Reporting
Return the important command output and final Compose status. State success only when the command exits successfully and the deployment reaches running/healthy state.
Do not expand DCC into unrelated operations such as Docker prune, Compose down, Git reset, force-pull, or branch changes.
Related skills
Create 1Panel appstore/local-app installation packages for Dockerized applications from official repositories, Docker images, docker-compose.yml files, or a...
Publish a web app via a curl-based JSON-RPC API and get a hosted URL.
京东 DUCC 配置中心(泰山 taishan.jd.com/ducc、后端 console.ducc.jd.com)统一入口,让 agent 能读写发布 DUCC 配置。零配置认证(本机京ME客户端换 sso.jd.com,无需浏览器/手填token)。当用户想要「查 DUCC 命名空间/应用配置空间」「列某命名空间下的配置文件」「看配置文件有哪些环境/profile(如 dev/common/生产配置/预发配置)」「读某个配置项的值/key value」「查 DUCC 某开关/参数当前配的啥」「改 DUCC 配置项/新增配置项/删除配置项」「发布 DUCC 配置/全量发布/灰度发布/分批发
提供Docker V1经典命令集与基础容器管理,适合维护旧版Docker环境的开发者。Use when 需要代码生成、编程辅助、调试测试、开发部署时使用。不适用于无明确技术栈的模糊需求。适用于独立开发者、企业团队和自动化工作流场景。支持中文交互,无需复杂配置即开即用。输出结果可直接使用,减少二次加工成本。
Deploy and maintain services on a VPS with 1 command: build → restart → verify → monitor with heartbeat + Telegram alerts. Complete DevOps package: systemd units, nginx reverse proxy, cron @reboot, watchdog restarts, deploy scripts. WARNING: runs systemd restarts, sudo, nohup/setsid and changes runtime state — only use on services you own, test on staging first.