docker-expert
改善 Docker 容器建置
Docker 專案可能變得緩慢、龐大且難以保護。此技能會引導改善 Dockerfile、Compose、機密與驗證。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "docker-expert" from https://skillstore.io/skills/sickn33-docker-expert.md and its manifest at https://skillstore.io/api/skills/sickn33-docker-expert/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「docker-expert」。 檢視以 root 執行,且在安裝依賴項之前複製完整原始碼的 Node 容器。
預期結果:
- 主要問題:root 執行階段、薄弱的層快取、過大的建置內容,以及缺少健康檢查。
- 建議變更:先安裝依賴項再複製原始碼、建立非 root 執行階段使用者,並新增聚焦的 ignore 檔案。
- 驗證:重新建置映像檔、比較映像檔大小、檢查執行階段程序,並確認健康端點行為。
正在使用「docker-expert」。 檢查包含 app 服務、database 服務、共用網路與明文密碼變數的 Compose 檔案。
預期結果:
- 主要問題:未強制執行 database 就緒狀態、後端流量未隔離,且機密使用明文環境變數。
- 建議變更:新增 database 健康檢查、拆分前端與後端網路,並將憑證移至 Docker secrets。
- 驗證:確認服務啟動順序、檢查網路可達性,並驗證執行中 stack 的機密引用。
正在使用「docker-expert」。 找出讓大型正式環境映像檔更小且更容易掃描的方法。
預期結果:
- 主要問題:建置工具存在於最終映像檔中,且套件快取在安裝後仍保留。
- 建議變更:分離建置與執行階段、只複製必要成品,並使用最小化的執行階段基礎映像檔。
- 驗證:比較映像檔歷史記錄、掃描最終映像檔,並執行應用程式 smoke tests。
安全審計
中風險The 48 static alerts are false positives caused by Markdown fences, localhost health checks, /dev/null redirection, and illustrative secret-management examples. No credential exfiltration or prompt injection is present. However, the validation sequence can stop an existing container named validation-test after an earlier command fails.
已確認的安全問題 (1)
風險因素
⚙️ 外部命令 (25)
🌐 網路存取 (2)
📁 檔案系統存取 (13)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/sickn33-docker-expert/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-docker-expert?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-docker-expert?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-docker-expert/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-docker-expert.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). docker-expert security audit report (audit version 6) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-docker-expert/audits/6BibTeX 引用
@techreport{sickn33-sickn33-docker-expert-2026,
author = {sickn33},
title = {docker-expert security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/sickn33-docker-expert/audits/6},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "docker-expert security audit report (audit version 6)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/sickn33-docker-expert/audits/6"
identifiers:
- type: other
value: "skillstore:sickn33-docker-expert:audit:6"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
強化正式環境 Dockerfile
在發布前檢視映像檔使用者、機密處理、套件佔用量、健康檢查與執行階段預設值。
部署前縮減映像檔大小
將大型建置轉換為較小的多階段映像檔,並以更乾淨的方式處理依賴項與產出成品。
檢視 Compose 服務設計
檢查多服務應用程式的服務依賴關係、網路、磁碟區、資源限制與機密引用。
試試這些提示
檢視此 Dockerfile 的快取、安全性、映像檔大小與健康檢查。先說明最高優先順序的變更。
檢視此 Docker Compose 設定中的服務啟動順序、網路、磁碟區、機密、資源限制與開發工作流程問題。
為此專案設計可用於正式環境的 Docker 方法。包含建置階段、執行階段使用者、機密處理、驗證步驟與 rollback 風險。
針對這些 Docker 檔案與記錄執行發布稽核。優先處理安全性、可重現性、執行階段穩定性與營運驗證。
最佳實務
- 分享 Dockerfile、Compose、ignore 檔案與相關建置記錄,以進行完整檢視。
- 在對真實專案執行 build、run、scan 或 cleanup 命令之前先確認。
- 以小步驟套用變更,並在部署前測試每個映像檔。
避免
- 將其用於 Docker 範圍之外的深度 Kubernetes、雲端服務或 CI pipeline 工作。
- 未經檢視與核准,就對正式環境系統執行建議命令。
- 直接複製範例,而未調整使用者、機密、連接埠、網路與執行階段政策。