Skip to content

Commit 7ea2fd5

Browse files
authored
Merge pull request docker#7753 from seemethere/update_yaml
Update commandline yaml docs
2 parents 61c59ce + c5c166a commit 7ea2fd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+736
-179
lines changed

_data/engine-cli/docker.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ command: docker
22
cname:
33
- docker attach
44
- docker build
5+
- docker builder
56
- docker checkpoint
67
- docker commit
78
- docker config
@@ -10,6 +11,7 @@ cname:
1011
- docker create
1112
- docker deploy
1213
- docker diff
14+
- docker engine
1315
- docker events
1416
- docker exec
1517
- docker export
@@ -59,6 +61,7 @@ cname:
5961
clink:
6062
- docker_attach.yaml
6163
- docker_build.yaml
64+
- docker_builder.yaml
6265
- docker_checkpoint.yaml
6366
- docker_commit.yaml
6467
- docker_config.yaml
@@ -67,6 +70,7 @@ clink:
6770
- docker_create.yaml
6871
- docker_deploy.yaml
6972
- docker_diff.yaml
73+
- docker_engine.yaml
7074
- docker_events.yaml
7175
- docker_exec.yaml
7276
- docker_export.yaml

_data/engine-cli/docker_build.yaml

Lines changed: 64 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,16 @@ options:
293293
experimentalcli: false
294294
kubernetes: false
295295
swarm: false
296+
- option: progress
297+
value_type: string
298+
default_value: auto
299+
description: |
300+
Set type of progress output (auto, plain, tty). Use plain to show container output
301+
deprecated: false
302+
experimental: false
303+
experimentalcli: false
304+
kubernetes: false
305+
swarm: false
296306
- option: pull
297307
value_type: bool
298308
default_value: "false"
@@ -321,6 +331,17 @@ options:
321331
experimentalcli: false
322332
kubernetes: false
323333
swarm: false
334+
- option: secret
335+
value_type: stringArray
336+
default_value: '[]'
337+
description: |
338+
Secret file to expose to the build (only if BuildKit enabled): id=mysecret,src=/local/secret
339+
deprecated: false
340+
min_api_version: "1.39"
341+
experimental: false
342+
experimentalcli: false
343+
kubernetes: false
344+
swarm: false
324345
- option: security-opt
325346
value_type: stringSlice
326347
default_value: '[]'
@@ -349,6 +370,17 @@ options:
349370
experimentalcli: false
350371
kubernetes: false
351372
swarm: false
373+
- option: ssh
374+
value_type: stringArray
375+
default_value: '[]'
376+
description: |
377+
SSH agent socket or keys to expose to the build (only if BuildKit enabled) (format: default|<id>[=<socket>|<key>[,<key>]])
378+
deprecated: false
379+
min_api_version: "1.39"
380+
experimental: false
381+
experimentalcli: false
382+
kubernetes: false
383+
swarm: false
352384
- option: stream
353385
value_type: bool
354386
default_value: "false"
@@ -477,21 +509,27 @@ examples: "### Build with PATH\n\n```bash\n$ docker build .\n\nUploading context
477509
build an image on.\n\nA good example is `http_proxy` or source versions for pulling
478510
intermediate\nfiles. The `ARG` instruction lets Dockerfile authors define values
479511
that users\ncan set at build-time using the `--build-arg` flag:\n\n```bash\n$ docker
480-
build --build-arg HTTP_PROXY=http://10.20.30.2:1234 .\n```\n\nThis flag allows you
481-
to pass the build-time variables that are\naccessed like regular environment variables
482-
in the `RUN` instruction of the\nDockerfile. Also, these values don't persist in
483-
the intermediate or final images\nlike `ENV` values do.\n\nUsing this flag will
484-
not alter the output you see when the `ARG` lines from the\nDockerfile are echoed
485-
during the build process.\n\nFor detailed information on using `ARG` and `ENV` instructions,
486-
see the\n[Dockerfile reference](../builder.md).\n\n### Optional security options
487-
(--security-opt)\n\nThis flag is only supported on a daemon running on Windows,
488-
and only supports\nthe `credentialspec` option. The `credentialspec` must be in
489-
the format\n`file://spec.txt` or `registry://keyname`.\n\n### Specify isolation
490-
technology for container (--isolation)\n\nThis option is useful in situations where
491-
you are running Docker containers on\nWindows. The `--isolation=<value>` option
492-
sets a container's isolation\ntechnology. On Linux, the only supported is the `default`
493-
option which uses\nLinux namespaces. On Microsoft Windows, you can specify these
494-
values:\n\n\n| Value | Description |\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n|
512+
build --build-arg HTTP_PROXY=http://10.20.30.2:1234 --build-arg FTP_PROXY=http://40.50.60.5:4567
513+
.\n```\n\nThis flag allows you to pass the build-time variables that are\naccessed
514+
like regular environment variables in the `RUN` instruction of the\nDockerfile.
515+
Also, these values don't persist in the intermediate or final images\nlike `ENV`
516+
values do. You must add `--build-arg` for each build argument. \n\nUsing this
517+
flag will not alter the output you see when the `ARG` lines from the\nDockerfile
518+
are echoed during the build process.\n\nFor detailed information on using `ARG`
519+
and `ENV` instructions, see the\n[Dockerfile reference](../builder.md).\n\nYou may
520+
also use the `--build-arg` flag without a value, in which case the value\nfrom the
521+
local environment will be propagated into the Docker container being\nbuilt:\n\n```bash\n$
522+
export HTTP_PROXY=http://10.20.30.2:1234\n$ docker build --build-arg HTTP_PROXY
523+
.\n```\n\nThis is similar to how `docker run -e` works. Refer to the [`docker run`
524+
documentation](https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file)\nfor
525+
more information.\n\n### Optional security options (--security-opt)\n\nThis flag
526+
is only supported on a daemon running on Windows, and only supports\nthe `credentialspec`
527+
option. The `credentialspec` must be in the format\n`file://spec.txt` or `registry://keyname`.\n\n###
528+
Specify isolation technology for container (--isolation)\n\nThis option is useful
529+
in situations where you are running Docker containers on\nWindows. The `--isolation=<value>`
530+
option sets a container's isolation\ntechnology. On Linux, the only supported is
531+
the `default` option which uses\nLinux namespaces. On Microsoft Windows, you can
532+
specify these values:\n\n\n| Value | Description |\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n|
495533
`default` | Use the value specified by the Docker daemon's `--exec-opt` . If the
496534
`daemon` does not specify an isolation technology, Microsoft Windows uses `process`
497535
as its default value. |\n| `process` | Namespace isolation only. |\n|
@@ -519,19 +557,18 @@ examples: "### Build with PATH\n\n```bash\n$ docker build .\n\nUploading context
519557
sharing layers between\nimages (saving space).\n\nFor most use cases, multi-stage
520558
are a better alternative, as they give more\nfine-grained control over your build,
521559
and can take advantage of future\noptimizations in the builder. Refer to the [use
522-
multi-stage builds](https://docs.docker.com/engine/userguide/eng-image/multistage-build/)\nsection
560+
multi-stage builds](https://docs.docker.com/develop/develop-images/multistage-build/)\nsection
523561
in the userguide for more information.\n\n\n#### Known limitations\n\nThe `--squash`
524562
option has a number of known limitations:\n\n- When squashing layers, the resulting
525-
image cannot take advantage of layer \n sharing with other images, and may use
526-
significantly more space. Sharing the\n base image is still supported.\n- When
527-
using this option you may see significantly more space used due to\n storing two
528-
copies of the image, one for the build cache with all the cache\n layers in tact,
529-
and one for the squashed version.\n- While squashing layers may produce smaller
530-
images, it may have a negative\n impact on performance, as a single layer takes
531-
longer to extract, and\n downloading a single layer cannot be parallelized.\n-
532-
When attempting to squash an image that does not make changes to the\n filesystem
533-
(for example, the Dockerfile only contains `ENV` instructions),\n the squash step
534-
will fail (see [issue #33823](https://github.com/moby/moby/issues/33823)\n\n####
563+
image cannot take advantage of layer\n sharing with other images, and may use significantly
564+
more space. Sharing the\n base image is still supported.\n- When using this option
565+
you may see significantly more space used due to\n storing two copies of the image,
566+
one for the build cache with all the cache\n layers in tact, and one for the squashed
567+
version.\n- While squashing layers may produce smaller images, it may have a negative\n
568+
\ impact on performance, as a single layer takes longer to extract, and\n downloading
569+
a single layer cannot be parallelized.\n- When attempting to squash an image that
570+
does not make changes to the\n filesystem (for example, the Dockerfile only contains
571+
`ENV` instructions),\n the squash step will fail (see [issue #33823](https://github.com/moby/moby/issues/33823)\n\n####
535572
Prerequisites\n\nThe example on this page is using experimental mode in Docker 1.13.\n\nExperimental
536573
mode can be enabled by using the `--experimental` flag when starting the Docker
537574
daemon or setting `experimental: true` in the `daemon.json` configuration file.\n\nBy
@@ -551,7 +588,7 @@ examples: "### Build with PATH\n\n```bash\n$ docker build .\n\nUploading context
551588
>> /hello\nRUN touch remove_me /remove_me\nENV HELLO world\nRUN rm /remove_me\n```\n\nAn
552589
image named `test` is built with `--squash` argument.\n\n```bash\n$ docker build
553590
--squash -t test .\n\n[...]\n```\n\nIf everything is right, the history will look
554-
like this:\n\n```bash\n$ docker history test \n\nIMAGE CREATED CREATED
591+
like this:\n\n```bash\n$ docker history test\n\nIMAGE CREATED CREATED
555592
BY SIZE COMMENT\n4e10cb5b4cac
556593
\ 3 seconds ago 12 B
557594
\ merge sha256:88a7b0112a41826885df0e7072698006ee8f621c6ab99fca7fe9151d7b599702

_data/engine-cli/docker_builder.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
command: docker builder
2+
short: Manage builds
3+
long: Manage builds
4+
usage: docker builder
5+
pname: docker
6+
plink: docker.yaml
7+
cname:
8+
- docker builder prune
9+
clink:
10+
- docker_builder_prune.yaml
11+
deprecated: false
12+
experimental: false
13+
experimentalcli: false
14+
kubernetes: false
15+
swarm: false
16+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
command: docker builder prune
2+
short: Remove build cache
3+
long: Remove build cache
4+
usage: docker builder prune
5+
pname: docker builder
6+
plink: docker_builder.yaml
7+
options:
8+
- option: all
9+
shorthand: a
10+
value_type: bool
11+
default_value: "false"
12+
description: Remove all unused images, not just dangling ones
13+
deprecated: false
14+
experimental: false
15+
experimentalcli: false
16+
kubernetes: false
17+
swarm: false
18+
- option: filter
19+
value_type: filter
20+
description: Provide filter values (e.g. 'unused-for=24h')
21+
deprecated: false
22+
experimental: false
23+
experimentalcli: false
24+
kubernetes: false
25+
swarm: false
26+
- option: force
27+
shorthand: f
28+
value_type: bool
29+
default_value: "false"
30+
description: Do not prompt for confirmation
31+
deprecated: false
32+
experimental: false
33+
experimentalcli: false
34+
kubernetes: false
35+
swarm: false
36+
- option: keep-storage
37+
value_type: bytes
38+
default_value: "0"
39+
description: Amount of disk space to keep for cache
40+
deprecated: false
41+
experimental: false
42+
experimentalcli: false
43+
kubernetes: false
44+
swarm: false
45+
deprecated: false
46+
min_api_version: "1.39"
47+
experimental: false
48+
experimentalcli: false
49+
kubernetes: false
50+
swarm: false
51+

_data/engine-cli/docker_checkpoint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ experimental: true
1818
experimentalcli: false
1919
kubernetes: false
2020
swarm: false
21+
os_type: linux
2122

_data/engine-cli/docker_checkpoint_create.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ experimental: true
2828
experimentalcli: false
2929
kubernetes: false
3030
swarm: false
31+
os_type: linux
3132

_data/engine-cli/docker_checkpoint_ls.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ experimental: true
2020
experimentalcli: false
2121
kubernetes: false
2222
swarm: false
23+
os_type: linux
2324

_data/engine-cli/docker_checkpoint_rm.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ experimental: true
2020
experimentalcli: false
2121
kubernetes: false
2222
swarm: false
23+
os_type: linux
2324

_data/engine-cli/docker_container_create.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ options:
8282
experimentalcli: false
8383
kubernetes: false
8484
swarm: false
85+
os_type: windows
8586
- option: cpu-percent
8687
value_type: int64
8788
default_value: "0"
@@ -91,6 +92,7 @@ options:
9192
experimentalcli: false
9293
kubernetes: false
9394
swarm: false
95+
os_type: windows
9496
- option: cpu-period
9597
value_type: int64
9698
default_value: "0"
@@ -394,6 +396,7 @@ options:
394396
experimentalcli: false
395397
kubernetes: false
396398
swarm: false
399+
os_type: windows
397400
- option: io-maxiops
398401
value_type: uint64
399402
default_value: "0"
@@ -403,6 +406,7 @@ options:
403406
experimentalcli: false
404407
kubernetes: false
405408
swarm: false
409+
os_type: windows
406410
- option: ip
407411
value_type: string
408412
description: IPv4 address (e.g., 172.30.100.104)

_data/engine-cli/docker_container_run.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ options:
8282
experimentalcli: false
8383
kubernetes: false
8484
swarm: false
85+
os_type: windows
8586
- option: cpu-percent
8687
value_type: int64
8788
default_value: "0"
@@ -91,6 +92,7 @@ options:
9192
experimentalcli: false
9293
kubernetes: false
9394
swarm: false
95+
os_type: windows
9496
- option: cpu-period
9597
value_type: int64
9698
default_value: "0"
@@ -412,6 +414,7 @@ options:
412414
experimentalcli: false
413415
kubernetes: false
414416
swarm: false
417+
os_type: windows
415418
- option: io-maxiops
416419
value_type: uint64
417420
default_value: "0"
@@ -421,6 +424,7 @@ options:
421424
experimentalcli: false
422425
kubernetes: false
423426
swarm: false
427+
os_type: windows
424428
- option: ip
425429
value_type: string
426430
description: IPv4 address (e.g., 172.30.100.104)

0 commit comments

Comments
 (0)