Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit d8b5846

Browse files
Merge component 'cli' from git@github.com:docker/cli 19.03
2 parents c71fa54 + 051459c commit d8b5846

36 files changed

Lines changed: 23958 additions & 1995 deletions

components/cli/appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ clone_folder: c:\gopath\src\github.com\docker\cli
44

55
environment:
66
GOPATH: c:\gopath
7-
GOVERSION: 1.13.11
7+
GOVERSION: 1.13.12
88
DEPVERSION: v0.4.1
99

1010
install:

components/cli/dockerfiles/Dockerfile.binary-native

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.13.11
1+
ARG GO_VERSION=1.13.12
22

33
FROM golang:${GO_VERSION}-alpine
44

components/cli/dockerfiles/Dockerfile.cross

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.13.11
1+
ARG GO_VERSION=1.13.12
22

33
FROM dockercore/golang-cross:${GO_VERSION}
44
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1

components/cli/dockerfiles/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.13.11
1+
ARG GO_VERSION=1.13.12
22

33
FROM golang:${GO_VERSION}-alpine
44

components/cli/dockerfiles/Dockerfile.e2e

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.13.11
1+
ARG GO_VERSION=1.13.12
22

33
# Use Debian based image as docker-compose requires glibc.
44
FROM golang:${GO_VERSION}-buster

components/cli/dockerfiles/Dockerfile.lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1.1.3-experimental
22

3-
ARG GO_VERSION=1.13.11
3+
ARG GO_VERSION=1.13.12
44
ARG GOLANGCI_LINTER_SHA="v1.21.0"
55

66
FROM golang:${GO_VERSION}-alpine AS build

components/cli/docs/extend/config.md

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ Config provides the base accessible fields for working with V0 plugin format
3434

3535
- **`description`** *string*
3636

37-
description of the plugin
37+
description of the plugin
3838

3939
- **`documentation`** *string*
4040

41-
link to the documentation about the plugin
41+
link to the documentation about the plugin
4242

4343
- **`interface`** *PluginInterface*
4444

@@ -96,27 +96,27 @@ Config provides the base accessible fields for working with V0 plugin format
9696

9797
- **`name`** *string*
9898

99-
name of the mount.
99+
name of the mount.
100100

101101
- **`description`** *string*
102102

103103
description of the mount.
104104

105105
- **`source`** *string*
106106

107-
source of the mount.
107+
source of the mount.
108108

109109
- **`destination`** *string*
110110

111-
destination of the mount.
111+
destination of the mount.
112112

113113
- **`type`** *string*
114114

115115
mount type.
116116

117117
- **`options`** *string array*
118118

119-
options of the mount.
119+
options of the mount.
120120

121121
- **`ipchost`** *boolean*
122122
Access to host ipc namespace.
@@ -135,31 +135,31 @@ Config provides the base accessible fields for working with V0 plugin format
135135

136136
- **`name`** *string*
137137

138-
name of the env.
138+
name of the env.
139139

140140
- **`description`** *string*
141141

142142
description of the env.
143143

144144
- **`value`** *string*
145145

146-
value of the env.
146+
value of the env.
147147

148148
- **`args`** *PluginArgs*
149149

150150
args of the plugin, struct consisting of the following fields
151151

152152
- **`name`** *string*
153153

154-
name of the args.
154+
name of the args.
155155

156156
- **`description`** *string*
157157

158158
description of the args.
159159

160160
- **`value`** *string array*
161161

162-
values of the args.
162+
values of the args.
163163

164164
- **`linux`** *PluginLinux*
165165

@@ -169,15 +169,15 @@ Config provides the base accessible fields for working with V0 plugin format
169169

170170
- **`allowAllDevices`** *boolean*
171171

172-
If `/dev` is bind mounted from the host, and allowAllDevices is set to true, the plugin will have `rwm` access to all devices on the host.
172+
If `/dev` is bind mounted from the host, and allowAllDevices is set to true, the plugin will have `rwm` access to all devices on the host.
173173

174174
- **`devices`** *PluginDevice array*
175175

176176
device of the plugin, (*Linux only*), struct consisting of the following fields, see [`DEVICES`](https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#devices)
177177

178178
- **`name`** *string*
179179

180-
name of the device.
180+
name of the device.
181181

182182
- **`description`** *string*
183183

@@ -193,45 +193,45 @@ Config provides the base accessible fields for working with V0 plugin format
193193

194194
```json
195195
{
196-
"Args": {
197-
"Description": "",
198-
"Name": "",
199-
"Settable": null,
200-
"Value": null
201-
},
202-
"Description": "A sample volume plugin for Docker",
203-
"Documentation": "https://docs.docker.com/engine/extend/plugins/",
204-
"Entrypoint": [
205-
"/usr/bin/sample-volume-plugin",
206-
"/data"
207-
],
208-
"Env": [
209-
{
210-
"Description": "",
211-
"Name": "DEBUG",
212-
"Settable": [
213-
"value"
214-
],
215-
"Value": "0"
216-
}
217-
],
218-
"Interface": {
219-
"Socket": "plugin.sock",
220-
"Types": [
221-
"docker.volumedriver/1.0"
222-
]
223-
},
224-
"Linux": {
225-
"Capabilities": null,
226-
"AllowAllDevices": false,
227-
"Devices": null
228-
},
229-
"Mounts": null,
230-
"Network": {
231-
"Type": ""
232-
},
233-
"PropagatedMount": "/data",
234-
"User": {},
235-
"Workdir": ""
196+
"Args": {
197+
"Description": "",
198+
"Name": "",
199+
"Settable": null,
200+
"Value": null
201+
},
202+
"Description": "A sample volume plugin for Docker",
203+
"Documentation": "https://docs.docker.com/engine/extend/plugins/",
204+
"Entrypoint": [
205+
"/usr/bin/sample-volume-plugin",
206+
"/data"
207+
],
208+
"Env": [
209+
{
210+
"Description": "",
211+
"Name": "DEBUG",
212+
"Settable": [
213+
"value"
214+
],
215+
"Value": "0"
216+
}
217+
],
218+
"Interface": {
219+
"Socket": "plugin.sock",
220+
"Types": [
221+
"docker.volumedriver/1.0"
222+
]
223+
},
224+
"Linux": {
225+
"Capabilities": null,
226+
"AllowAllDevices": false,
227+
"Devices": null
228+
},
229+
"Mounts": null,
230+
"Network": {
231+
"Type": ""
232+
},
233+
"PropagatedMount": "/data",
234+
"User": {},
235+
"Workdir": ""
236236
}
237237
```

components/cli/docs/extend/plugins_network.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,18 @@ Once running however, network driver plugins are used just like the built-in
4242
network drivers: by being mentioned as a driver in network-oriented Docker
4343
commands. For example,
4444

45-
$ docker network create --driver weave mynet
45+
```bash
46+
$ docker network create --driver weave mynet
47+
```
4648

4749
Some network driver plugins are listed in [plugins](legacy_plugins.md)
4850

4951
The `mynet` network is now owned by `weave`, so subsequent commands
5052
referring to that network will be sent to the plugin,
5153

52-
$ docker run --network=mynet busybox top
54+
```bash
55+
$ docker run --network=mynet busybox top
56+
```
5357

5458

5559
## Find network plugins
@@ -61,8 +65,8 @@ or on the third party's site.
6165

6266
## Write a network plugin
6367

64-
Network plugins implement the [Docker plugin
65-
API](plugin_api.md) and the network plugin protocol
68+
Network plugins implement the [Docker plugin API](plugin_api.md) and the network
69+
plugin protocol
6670

6771
## Network plugin protocol
6872

@@ -74,5 +78,5 @@ documented as part of libnetwork:
7478

7579
To interact with the Docker maintainers and other interested users, see the IRC channel `#docker-network`.
7680

77-
- [Docker networks feature overview](https://docs.docker.com/engine/userguide/networking/)
78-
- The [LibNetwork](https://github.com/docker/libnetwork) project
81+
- [Docker networks feature overview](https://docs.docker.com/engine/userguide/networking/)
82+
- The [LibNetwork](https://github.com/docker/libnetwork) project

components/cli/docs/reference/builder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ FROM [--platform=<platform>] <image>[@<digest>] [AS <name>]
608608
```
609609

610610
The `FROM` instruction initializes a new build stage and sets the
611-
[*Base Image*](../../glossary/#base-image) for subsequent instructions. As such, a
611+
[*Base Image*](https://docs.docker.com/glossary/#base_image) for subsequent instructions. As such, a
612612
valid `Dockerfile` must start with a `FROM` instruction. The image can be
613613
any valid image – it is especially easy to start by **pulling an image** from
614614
the [*Public Repositories*](https://docs.docker.com/engine/tutorials/dockerrepos/).

components/cli/docs/reference/commandline/cli.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,27 +61,27 @@ by the `docker` command line:
6161

6262
* `DOCKER_API_VERSION` The API version to use (e.g. `1.19`)
6363
* `DOCKER_CONFIG` The location of your client configuration files.
64-
* `DOCKER_CERT_PATH` The location of your authentication keys.
6564
* `DOCKER_CLI_EXPERIMENTAL` Enable experimental features for the cli (e.g. `enabled` or `disabled`)
66-
* `DOCKER_DRIVER` The graph driver to use.
6765
* `DOCKER_HOST` Daemon socket to connect to.
68-
* `DOCKER_NOWARN_KERNEL_VERSION` Prevent warnings that your Linux kernel is
69-
unsuitable for Docker.
70-
* `DOCKER_RAMDISK` If set this will disable 'pivot_root'.
7166
* `DOCKER_STACK_ORCHESTRATOR` Configure the default orchestrator to use when using `docker stack` management commands.
72-
* `DOCKER_TLS` When set Docker uses TLS.
73-
* `DOCKER_TLS_VERIFY` When set Docker uses TLS and verifies the remote.
7467
* `DOCKER_CONTENT_TRUST` When set Docker uses notary to sign and verify images.
7568
Equates to `--disable-content-trust=false` for build, create, pull, push, run.
7669
* `DOCKER_CONTENT_TRUST_SERVER` The URL of the Notary server to use. This defaults
7770
to the same URL as the registry.
7871
* `DOCKER_HIDE_LEGACY_COMMANDS` When set, Docker hides "legacy" top-level commands (such as `docker rm`, and
7972
`docker pull`) in `docker help` output, and only `Management commands` per object-type (e.g., `docker container`) are
8073
printed. This may become the default in a future release, at which point this environment-variable is removed.
81-
* `DOCKER_TMPDIR` Location for temporary Docker files.
8274
* `DOCKER_CONTEXT` Specify the context to use (overrides DOCKER_HOST env var and default context set with "docker context use")
8375
* `DOCKER_DEFAULT_PLATFORM` Specify the default platform for the commands that take the `--platform` flag.
8476

77+
#### Shared Environment variables
78+
79+
These environment variables can be used both with the `docker` command line and
80+
`dockerd` command line:
81+
82+
* `DOCKER_CERT_PATH` The location of your authentication keys.
83+
* `DOCKER_TLS_VERIFY` When set Docker uses TLS and verifies the remote.
84+
8585
Because Docker is developed using Go, you can also use any environment
8686
variables used by the Go runtime. In particular, you may find these useful:
8787

0 commit comments

Comments
 (0)