github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/cli/README.md (about)

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