
Docker CLI
CLIDocker 官方命令行,构建镜像、运行和管理容器、查看日志并推送到镜像仓库,是 agent 搭建隔离运行环境的基础工具。需要本机或远程的 Docker 引擎(如 Docker Desktop)。
Docker CLI
About
This repository is the home of the Docker CLI.
Development
docker/cli is developed using Docker.
Build CLI from source:
docker buildx bake
Build binaries for all supported platforms:
docker buildx bake cross
Build for a specific platform:
docker buildx bake --set binary.platform=linux/arm64
Build dynamic binary for glibc or musl:
USE_GLIBC=1 docker buildx bake dynbinary
Run all linting:
docker buildx bake lint shellcheck
Run test:
docker buildx bake test
Run the unit test:
$ make -f docker.Makefile test-unit
Run the full test suite:
$ make -f docker.Makefile test
List all the available targets:
make help
In-container development environment
Start an interactive development environment:
make shell
Legal
Brought to you courtesy of our legal counsel. For more context, see the NOTICE document in this repo.
Use and transfer of Docker may be subject to certain restrictions by the United States and other governments.
It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.
For more information, see https://www.bis.doc.gov
Licensing
docker/cli is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
相关资源

Docker Compose
CLI用 compose.yaml 定义多容器应用,一条 docker compose up 拉起服务、数据库、缓存等整套环境,适合 agent 搭建本地开发与测试依赖。Docker 官方维护,macOS 随 Docker Desktop 附带。
docker/compose38.4k
Podman
CLI无需守护进程、支持 rootless 的容器与 Pod 管理工具,命令行与 Docker 兼容,可构建、运行、推送 OCI 镜像;macOS 与 Windows 需通过 podman machine 虚拟机运行。
podman-container-tools/podman33.1k
Dagger
CLI可编程的软件交付引擎:用 Go、Python、TypeScript 等 8 种语言的 SDK 编写构建、测试与发布流程,全部在容器中运行,本地与 CI 行为一致,自带 OpenTelemetry 追踪。需要 Docker 等容器运行时。
dagger/dagger16.3k
Docker Skills
SkillDocker 官方技能合集:项目容器化、Dockerfile 构建优化与加固、Compose 编排、Docker Sandboxes 与 Docker Agent 用法,并对删除等破坏性操作加确认护栏。
docker/skills569
Trivy
CLI一站式安全扫描器:检查容器镜像、文件系统、Git 仓库与 Kubernetes 集群中的已知漏洞、IaC 错误配置、泄露密钥与软件许可证,并能生成 SBOM。Aqua Security 开源维护。
aquasecurity/trivy38.5k
Container Use
CLIDagger 官方出品:给每个编码 agent 分配独立的容器和 git 分支,多个 agent 可以并行工作、互不干扰,还能查看命令日志、随时接管终端。以 MCP 方式接入,需要 Docker 与 Git,目前仍处于实验阶段。
dagger/container-use4.1k