September 28, 2026

Docker CLI
The official Docker command-line tool for interacting with the Docker engine via the terminal.
docker buildx bakemake shellProduct facts
- Type
- CLI / Terminal
- Category
- Development & Engineering › CI/CD and DevOps
- Pricing
- Open source
- License
- Apache-2.0
- Launched
- Sep 28, 2026
- Listed
- Sep 28, 2026
- Website
- github.com
Overview
Introduction
Docker CLI is the official command-line interface (CLI) for Docker. Its source code is hosted in the docker/cli repository, written in Go, and licensed under Apache-2.0.
What It Is
This repository contains the source code for Docker CLI. Developers can use it to build, test, and customize the Docker command-line tool. The project itself uses Docker for development, and its build process relies on docker buildx bake.
Key Capabilities
- Build from Source: Compile the CLI from source using the
docker buildx bakecommand. - Cross-Platform Builds: Generate binaries for all supported platforms via
docker buildx bake cross, or target a single platform (e.g.,linux/arm64). - Dynamic Binary Builds: Build dynamically linked binaries against glibc or musl.
- Linting and Testing: Built-in commands for linting (including shellcheck), unit tests, and running the full test suite.
- In-Container Dev Environment: Use the
make shellcommand to launch an interactive in-container development environment.
Who It's For
Ideal for developers who need to review the Docker CLI source code, contribute to the project, or compile custom versions. Regular users typically just install the pre-built Docker Desktop or engine packages to use the CLI, without needing to build manually from this repository.
License and Compliance
The project is released under the Apache License 2.0. As noted in the README, the use and transfer of Docker may be subject to restrictions by the U.S. and other governments; users are responsible for ensuring compliance with applicable laws.
Key features
- Build from Source: Compile Docker CLI from source using the docker buildx bake command.
- Cross-Platform Builds: Generate binaries for all supported platforms or a specific one (e.g., linux/arm64).
- Dynamic Binary Builds: Build dynamically linked binaries targeting glibc or musl.
- Linting: Built-in lint and shellcheck targets for code quality checks.
- Test Suite: Run unit tests and the full test suite.
- In-Container Dev Environment: Launch an interactive in-container dev environment via make shell.
Releases
Notify meQ&A
- How do I build Docker CLI from source?AI-generated
- Run `docker buildx bake` at the repository root to build the CLI from source. The project itself uses Docker for development.
- How do I build binaries for a specific platform?AI-generated
- Use the `docker buildx bake --set binary.platform=linux/arm64` command, replacing `linux/arm64` with your target platform.
- How do I run the tests?AI-generated
- Run `docker buildx bake test` to execute tests, `make -f docker.Makefile test-unit` for unit tests only, or `make -f docker.Makefile test` for the full test suite.
- What license does Docker CLI use?AI-generated
- It uses the Apache License, Version 2.0.
This product has no owner yet
It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.
Claim this productAlternatives
The product content on this page was translated by AI from the author's original.
