2017-09-15 16:08:28 +03:00
|
|
|
[![build status](https://circleci.com/gh/docker/cli.svg?style=shield)](https://circleci.com/gh/docker/cli/tree/master) [![Build Status](https://jenkins.dockerproject.org/job/docker/job/cli/job/master/badge/icon)](https://jenkins.dockerproject.org/job/docker/job/cli/job/master/)
|
2017-05-03 23:27:10 +03:00
|
|
|
|
2017-04-18 00:49:33 +03:00
|
|
|
docker/cli
|
|
|
|
==========
|
|
|
|
|
|
|
|
This repository is the home of the cli used in the Docker CE and
|
|
|
|
Docker EE products.
|
|
|
|
|
2017-04-25 19:57:06 +03:00
|
|
|
Development
|
|
|
|
===========
|
|
|
|
|
2017-05-14 20:24:10 +03:00
|
|
|
`docker/cli` is developed using Docker.
|
2017-04-25 19:57:06 +03:00
|
|
|
|
2017-05-14 20:24:10 +03:00
|
|
|
Build a linux binary:
|
2017-04-25 19:57:06 +03:00
|
|
|
|
|
|
|
```
|
2017-05-14 20:24:10 +03:00
|
|
|
$ make -f docker.Makefile binary
|
2017-04-25 19:57:06 +03:00
|
|
|
```
|
|
|
|
|
2017-05-14 20:24:10 +03:00
|
|
|
Build binaries for all supported platforms:
|
2017-04-25 19:57:06 +03:00
|
|
|
|
|
|
|
```
|
2017-05-14 20:24:10 +03:00
|
|
|
$ make -f docker.Makefile cross
|
2017-04-25 19:57:06 +03:00
|
|
|
```
|
|
|
|
|
2017-05-14 20:24:10 +03:00
|
|
|
Run all linting:
|
2017-04-25 19:57:06 +03:00
|
|
|
|
|
|
|
```
|
2017-05-14 20:24:10 +03:00
|
|
|
$ make -f docker.Makefile lint
|
2017-04-25 19:57:06 +03:00
|
|
|
```
|
|
|
|
|
2017-07-19 18:44:39 +03:00
|
|
|
List all the available targets:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ make help
|
|
|
|
```
|
|
|
|
|
2017-04-25 19:57:06 +03:00
|
|
|
### In-container development environment
|
|
|
|
|
2017-05-14 20:24:10 +03:00
|
|
|
Start an interactive development environment:
|
2017-04-25 19:57:06 +03:00
|
|
|
|
|
|
|
```
|
2017-05-14 20:24:10 +03:00
|
|
|
$ make -f docker.Makefile shell
|
2017-04-25 19:57:06 +03:00
|
|
|
```
|
|
|
|
|
2017-05-14 20:24:10 +03:00
|
|
|
In the development environment you can run many tasks, including build binaries:
|
|
|
|
|
2017-04-25 19:57:06 +03:00
|
|
|
```
|
2017-05-14 20:24:10 +03:00
|
|
|
$ make binary
|
2017-04-25 19:57:06 +03:00
|
|
|
```
|
|
|
|
|
2017-04-18 00:49:33 +03:00
|
|
|
Legal
|
|
|
|
=====
|
|
|
|
*Brought to you courtesy of our legal counsel. For more context,
|
|
|
|
please see the [NOTICE](https://github.com/docker/cli/blob/master/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, please see https://www.bis.doc.gov
|
|
|
|
|
|
|
|
Licensing
|
|
|
|
=========
|
|
|
|
docker/cli is licensed under the Apache License, Version 2.0. See
|
|
|
|
[LICENSE](https://github.com/docker/docker/blob/master/LICENSE) for the full
|
|
|
|
license text.
|