Skip to content

Commit cdd81d6

Browse files
authored
Merge pull request #4528 from thaJeztah/24.0_backport_docs
[24.0 backport] assorted (docs) backports
2 parents 98ffe42 + d9770a9 commit cdd81d6

33 files changed

Lines changed: 44 additions & 44 deletions

CONTRIBUTING.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ For more details, see the [MAINTAINERS](MAINTAINERS) page.
192192
The sign-off is a simple line at the end of the explanation for the patch. Your
193193
signature certifies that you wrote the patch or otherwise have the right to pass
194194
it on as an open-source patch. The rules are pretty simple: if you can certify
195-
the below (from [developercertificate.org](http://developercertificate.org/)):
195+
the below (from [developercertificate.org](https://developercertificate.org):
196196

197197
```
198198
Developer Certificate of Origin
@@ -336,9 +336,8 @@ The rules:
336336
1. All code should be formatted with `gofumpt` (preferred) or `gofmt -s`.
337337
2. All code should pass the default levels of
338338
[`golint`](https://github.com/golang/lint).
339-
3. All code should follow the guidelines covered in [Effective
340-
Go](http://golang.org/doc/effective_go.html) and [Go Code Review
341-
Comments](https://github.com/golang/go/wiki/CodeReviewComments).
339+
3. All code should follow the guidelines covered in [Effective Go](https://go.dev/doc/effective_go)
340+
and [Go Code Review Comments](https://github.com/golang/go/wiki/CodeReviewComments).
342341
4. Comment the code. Tell us the why, the history and the context.
343342
5. Document _all_ declarations and methods, even private ones. Declare
344343
expectations, caveats and anything else that may be important. If a type
@@ -360,6 +359,6 @@ The rules:
360359
guidelines. Since you've read all the rules, you now know that.
361360

362361
If you are having trouble getting into the mood of idiomatic Go, we recommend
363-
reading through [Effective Go](https://golang.org/doc/effective_go.html). The
364-
[Go Blog](https://blog.golang.org) is also a great resource. Drinking the
362+
reading through [Effective Go](https://go.dev/doc/effective_go). The
363+
[Go Blog](https://go.dev/blog/) is also a great resource. Drinking the
365364
kool-aid is a lot easier than going thirsty.

cli/command/image/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func NewBuildCommand(dockerCli command.Cli) *cobra.Command {
128128
flags.Int64Var(&options.cpuQuota, "cpu-quota", 0, "Limit the CPU CFS (Completely Fair Scheduler) quota")
129129
flags.StringVar(&options.cpuSetCpus, "cpuset-cpus", "", "CPUs in which to allow execution (0-3, 0,1)")
130130
flags.StringVar(&options.cpuSetMems, "cpuset-mems", "", "MEMs in which to allow execution (0-3, 0,1)")
131-
flags.StringVar(&options.cgroupParent, "cgroup-parent", "", "Optional parent cgroup for the container")
131+
flags.StringVar(&options.cgroupParent, "cgroup-parent", "", `Set the parent cgroup for the "RUN" instructions during build`)
132132
flags.StringVar(&options.isolation, "isolation", "", "Container isolation technology")
133133
flags.Var(&options.labels, "label", "Set metadata for an image")
134134
flags.BoolVar(&options.noCache, "no-cache", false, "Do not use cache when building the image")

cli/command/manifest/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type osArch struct {
1616

1717
// Remove any unsupported os/arch combo
1818
// list of valid os/arch values (see "Optional Environment Variables" section
19-
// of https://golang.org/doc/install/source
19+
// of https://go.dev/doc/install/source
2020
// Added linux/s390x as we know System z support already exists
2121
// Keep in sync with _docker_manifest_annotate in contrib/completion/bash/docker
2222
var validOSArches = map[osArch]bool{

cli/command/system/prune.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func newPruneCommand(dockerCli command.Cli) *cobra.Command {
4848
flags := cmd.Flags()
4949
flags.BoolVarP(&options.force, "force", "f", false, "Do not prompt for confirmation")
5050
flags.BoolVarP(&options.all, "all", "a", false, "Remove all unused images not just dangling ones")
51-
flags.BoolVar(&options.pruneVolumes, "volumes", false, "Prune volumes")
51+
flags.BoolVar(&options.pruneVolumes, "volumes", false, "Prune anonymous volumes")
5252
flags.Var(&options.filter, "filter", `Provide filter values (e.g. "label=<key>=<value>")`)
5353
// "filter" flag is available in 1.28 (docker 17.04) and up
5454
flags.SetAnnotation("filter", "version", []string{"1.28"})
@@ -114,7 +114,7 @@ func confirmationMessage(dockerCli command.Cli, options pruneOptions) string {
114114
"all networks not used by at least one container",
115115
}
116116
if options.pruneVolumes {
117-
warnings = append(warnings, "all volumes not used by at least one container")
117+
warnings = append(warnings, "all anonymous volumes not used by at least one container")
118118
}
119119
if options.all {
120120
warnings = append(warnings, "all images without at least one container associated to them")

cli/command/volume/prune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewPruneCommand(dockerCli command.Cli) *cobra.Command {
2727

2828
cmd := &cobra.Command{
2929
Use: "prune [OPTIONS]",
30-
Short: "Remove all unused local volumes",
30+
Short: "Remove unused local volumes",
3131
Args: cli.NoArgs,
3232
RunE: func(cmd *cobra.Command, args []string) error {
3333
spaceReclaimed, output, err := runPrune(dockerCli, options)

docs/reference/commandline/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Build an image from a Dockerfile
1414
| [`--add-host`](#add-host) | `list` | | Add a custom host-to-IP mapping (`host:ip`) |
1515
| [`--build-arg`](#build-arg) | `list` | | Set build-time variables |
1616
| [`--cache-from`](#cache-from) | `stringSlice` | | Images to consider as cache sources |
17-
| [`--cgroup-parent`](#cgroup-parent) | `string` | | Optional parent cgroup for the container |
17+
| [`--cgroup-parent`](#cgroup-parent) | `string` | | Set the parent cgroup for the `RUN` instructions during build |
1818
| `--compress` | | | Compress the build context using gzip |
1919
| `--cpu-period` | `int64` | `0` | Limit the CPU CFS (Completely Fair Scheduler) period |
2020
| `--cpu-quota` | `int64` | `0` | Limit the CPU CFS (Completely Fair Scheduler) quota |

docs/reference/commandline/builder_build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Build an image from a Dockerfile
1414
| `--add-host` | `list` | | Add a custom host-to-IP mapping (`host:ip`) |
1515
| `--build-arg` | `list` | | Set build-time variables |
1616
| `--cache-from` | `stringSlice` | | Images to consider as cache sources |
17-
| `--cgroup-parent` | `string` | | Optional parent cgroup for the container |
17+
| `--cgroup-parent` | `string` | | Set the parent cgroup for the `RUN` instructions during build |
1818
| `--compress` | | | Compress the build context using gzip |
1919
| `--cpu-period` | `int64` | `0` | Limit the CPU CFS (Completely Fair Scheduler) period |
2020
| `--cpu-quota` | `int64` | `0` | Limit the CPU CFS (Completely Fair Scheduler) quota |

docs/reference/commandline/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ line:
134134
| `DOCKER_DEFAULT_PLATFORM` | Default platform for commands that take the `--platform` flag. |
135135
| `DOCKER_HIDE_LEGACY_COMMANDS` | When set, Docker hides "legacy" top-level commands (such as `docker rm`, and `docker pull`) in `docker help` output, and only `Management commands` per object-type (e.g., `docker container`) are printed. This may become the default in a future release. |
136136
| `DOCKER_HOST` | Daemon socket to connect to. |
137+
| `DOCKER_TLS` | Enable TLS for connections made by the `docker` CLI (equivalent of the `--tls` command-line option). Set to a non-empty value to enable TLS. Note that TLS is enabled automatically if any of the other TLS options are set. |
137138
| `DOCKER_TLS_VERIFY` | When set Docker uses TLS and verifies the remote. This variable is used both by the `docker` CLI and the [`dockerd` daemon](dockerd.md) |
138139
| `BUILDKIT_PROGRESS` | Set type of progress output (`auto`, `plain`, `tty`) when [building](build.md) with [BuildKit backend](https://docs.docker.com/build/buildkit/). Use plain to show container output (default `auto`). |
139140

docs/reference/commandline/config_inspect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Inspects the specified config.
2020
By default, this renders all results in a JSON array. If a format is specified,
2121
the given template will be executed for each result.
2222

23-
Go's [text/template](https://golang.org/pkg/text/template/) package
23+
Go's [text/template](https://pkg.go.dev/text/template) package
2424
describes all the details of the format.
2525

2626
For detailed information about using configs, refer to [store configuration data using Docker Configs](https://docs.docker.com/engine/swarm/configs/).

docs/reference/commandline/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ The currently supported filters are:
194194

195195
If a format (`--format`) is specified, the given template will be executed
196196
instead of the default
197-
format. Go's [text/template](https://golang.org/pkg/text/template/) package
197+
format. Go's [text/template](https://pkg.go.dev/text/template) package
198198
describes all the details of the format.
199199

200200
If a format is set to `{{json .}}`, the events are streamed as valid JSON

0 commit comments

Comments
 (0)