cli/docs/reference
Sebastiaan van Stijn 7091e8bea4
cli/flags: add "hostVar" to handle --host / -H as a single string
hostVar is used for the '--host' / '-H' flag to set [ClientOptions.Hosts].
The [ClientOptions.Hosts] field is a slice because it was originally shared
with the daemon config. However, the CLI only allows for a single host to
be specified.

hostVar presents itself as a "string", but stores the value in a string
slice. It produces an error when trying to set multiple values, matching
the check in [getServerHost].

[getServerHost]: 7eab668982/cli/command/cli.go (L542-L551)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f14eeeb361)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-18 17:12:54 +02:00
..
commandline cli/flags: add "hostVar" to handle --host / -H as a single string 2025-08-18 17:12:54 +02:00
builder.md
dockerd.md docs: cdi is not experimental anymore 2025-07-07 16:10:30 +02:00
glossary.md
index.md docs: update url scheme for reference docs 2024-02-20 21:38:50 +01:00
run.md docs: Correct `run` exit code 126 description 2024-11-04 00:21:33 +00:00