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