Merge pull request #51785 from majiayu000/49594-fix-api-arch-description

docs: fix reversed descriptions of version.Arch and info.Architecture
This commit is contained in:
Paweł Gronowski
2026-01-05 15:20:00 +00:00
committed by GitHub

View File

@@ -6599,7 +6599,9 @@ definitions:
example: "linux" example: "linux"
Arch: Arch:
description: | description: |
The architecture that the daemon is running on Architecture of the daemon, as returned by the Go runtime (`GOARCH`).
A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment).
type: "string" type: "string"
example: "amd64" example: "amd64"
KernelVersion: KernelVersion:
@@ -6826,10 +6828,13 @@ definitions:
example: "linux" example: "linux"
Architecture: Architecture:
description: | description: |
Hardware architecture of the host, as returned by the Go runtime Hardware architecture of the host, as returned by the operating system.
(`GOARCH`). This is equivalent to the output of `uname -m` on Linux.
A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment). Unlike `Arch` (from `/version`), this reports the machine's native
architecture, which can differ from the Go runtime architecture when
running a binary compiled for a different architecture (for example,
a 32-bit binary running on 64-bit hardware).
type: "string" type: "string"
example: "x86_64" example: "x86_64"
NCPU: NCPU: