...
1# Docker CLI
2
3[](https://pkg.go.dev/github.com/docker/cli)
4[](https://github.com/docker/cli/actions?query=workflow%3Abuild)
5[](https://github.com/docker/cli/actions?query=workflow%3Atest)
6[](https://goreportcard.com/report/github.com/docker/cli)
7[](https://codecov.io/gh/docker/cli)
8
9## About
10
11This repository is the home of the Docker CLI.
12
13## Development
14
15`docker/cli` is developed using Docker.
16
17Build CLI from source:
18
19```shell
20docker buildx bake
21```
22
23Build binaries for all supported platforms:
24
25```shell
26docker buildx bake cross
27```
28
29Build for a specific platform:
30
31```shell
32docker buildx bake --set binary.platform=linux/arm64
33```
34
35Build dynamic binary for glibc or musl:
36
37```shell
38USE_GLIBC=1 docker buildx bake dynbinary
39```
40
41Run all linting:
42
43```shell
44docker buildx bake lint shellcheck
45```
46
47Run test:
48
49```shell
50docker buildx bake test
51```
52
53List all the available targets:
54
55```shell
56make help
57```
58
59### In-container development environment
60
61Start an interactive development environment:
62
63```shell
64make -f docker.Makefile shell
65```
66
67## Legal
68
69*Brought to you courtesy of our legal counsel. For more context,
70please see the [NOTICE](https://github.com/docker/cli/blob/master/NOTICE) document in this repo.*
71
72Use and transfer of Docker may be subject to certain restrictions by the
73United States and other governments.
74
75It is your responsibility to ensure that your use and/or transfer does not
76violate applicable laws.
77
78For more information, please see https://www.bis.doc.gov
79
80## Licensing
81
82docker/cli is licensed under the Apache License, Version 2.0. See
83[LICENSE](https://github.com/docker/docker/blob/master/LICENSE) for the full
84license text.
View as plain text