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