Skip to main content

slim

Use this skill when the user wants to shrink Docker images, analyze container layers, lint Dockerfiles, or debug running containers — Docker Slim toolkit for security and size optimization.

来源信息

仓库
javimosch/supercli
最近来源活动
2026年7月20日 20:48
检测到的 SKILL.md 语言
英语
星标
51
分支
7

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
slim
description
Use this skill when the user wants to shrink Docker images, analyze container layers, lint Dockerfiles, or debug running containers — Docker Slim toolkit for security and size optimization.
# slim Plugin DockerSlim (slimtoolkit/slim) minifies container images by removing unused files, analyzes image layers, lints Dockerfiles, and attaches debug shells to running containers. CNCF sandbox project. ## Installation ```bash brew install docker-slim # or curl -sL https://raw.githubusercontent.com/slimtoolkit/slim/master/scripts/install-slim.sh | sudo -E bash - ``` ## Basic Usage ```bash # Optimize an image (creates a smaller variant) slim build myapp:latest # Static analysis of layers and files slim xray myapp:latest # Lint a Dockerfile slim lint Dockerfile # Debug a running container slim debug <container-id> ``` ## Common Flags ```bash # Custom tag for optimized image slim build myapp:latest --tag myapp:slim # Include extra paths in the minified image slim build myapp:latest --include-path /app/config # Show layer change details slim xray myapp:latest --changes all ``` ## Usage Examples - "Shrink this Docker image for production" - "Analyze what's inside this container image" - "Lint my Dockerfile for best practices" - "Debug a running container interactively" ## SuperCLI ```bash sc slim image build myapp:latest sc slim image xray myapp:latest sc slim dockerfile lint Dockerfile sc plugins learn slim ```
在 GitHub 查看