The Docker CLI
Go to file
Sebastiaan van Stijn 39e1213615
e2e/testutils: fix incorrect use of PluginConfigInterface
This code was using the type incorrectly; current versions of the
API MarshalText ignore this mistake, but the moby/moby/api module
produces an error:

    === Failed
    === FAIL: e2e/global TestPromptExitCode/plugin_install (0.28s)
        cli_test.go:203: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot

    === FAIL: e2e/global TestPromptExitCode/plugin_upgrade (0.26s)
        cli_test.go:203: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-20 22:00:06 +02:00
.github build(deps): bump actions/checkout from 4 to 5 2025-08-19 16:32:19 +02:00
cli cli/command: deprecate prompt utilities that were for internal use 2025-08-20 18:04:22 +02:00
cli-plugins cli-plugins/manager: deprecate annotation metadata aliases 2025-08-18 21:54:05 +02:00
cmd/docker Merge pull request #6276 from thaJeztah/28.x_backport_cli_internalize_utils 2025-08-18 11:41:10 +02:00
contrib
dockerfiles
docs docs: deprecated: fix formatting of deprecated/removed in 2025-08-19 18:09:18 +02:00
e2e e2e/testutils: fix incorrect use of PluginConfigInterface 2025-08-20 22:00:06 +02:00
experimental
internal refactor(cli/compose/loader): extract ParseVolume() to its own package 2025-08-20 16:52:12 +02:00
man
opts opts: deprecate NewNamedListOptsRef, NewNamedMapOpts 2025-08-18 18:28:48 +02:00
pkg/kvfile
scripts
templates
vendor
.codecov.yml
.dockerignore
.gitattributes
.gitignore
.golangci.yml remove aliases for containerd/errdefs, disallow docker/errdefs 2025-08-16 18:29:23 +02:00
.mailmap
AUTHORS
CONTRIBUTING.md
Dockerfile
LICENSE
MAINTAINERS
Makefile
NOTICE
README.md
SECURITY.md
TESTING.md
VERSION
docker-bake.hcl
docker.Makefile
vendor.mod
vendor.sum

README.md

Docker CLI

PkgGoDev Build Status Test Status Go Report Card OpenSSF Scorecard Codecov

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

List all the available targets:

make help

In-container development environment

Start an interactive development environment:

make -f docker.Makefile shell

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.