Merge pull request #43609 from thaJeztah/websocket_streams_docs_touch_ups
API: fix documentation for containers/{id}/attach/ws
This commit is contained in:
commit
1a0587bd76
25 changed files with 7 additions and 299 deletions
|
@ -1013,12 +1013,6 @@ Implements websocket protocol handshake according to [RFC 6455](http://tools.iet
|
|||
- **logs** – 1/True/true or 0/False/false, return logs. Default `false`.
|
||||
- **stream** – 1/True/true or 0/False/false, return stream.
|
||||
Default `false`.
|
||||
- **stdin** – 1/True/true or 0/False/false, if `stream=true`, attach
|
||||
to `stdin`. Default `false`.
|
||||
- **stdout** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stdout` log, if `stream=true`, attach to `stdout`. Default `false`.
|
||||
- **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
|
|
@ -1050,12 +1050,6 @@ Implements websocket protocol handshake according to [RFC 6455](http://tools.iet
|
|||
- **logs** – 1/True/true or 0/False/false, return logs. Default `false`.
|
||||
- **stream** – 1/True/true or 0/False/false, return stream.
|
||||
Default `false`.
|
||||
- **stdin** – 1/True/true or 0/False/false, if `stream=true`, attach
|
||||
to `stdin`. Default `false`.
|
||||
- **stdout** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stdout` log, if `stream=true`, attach to `stdout`. Default `false`.
|
||||
- **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
|
|
@ -1059,12 +1059,6 @@ Implements websocket protocol handshake according to [RFC 6455](http://tools.iet
|
|||
- **logs** – 1/True/true or 0/False/false, return logs. Default `false`.
|
||||
- **stream** – 1/True/true or 0/False/false, return stream.
|
||||
Default `false`.
|
||||
- **stdin** – 1/True/true or 0/False/false, if `stream=true`, attach
|
||||
to `stdin`. Default `false`.
|
||||
- **stdout** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stdout` log, if `stream=true`, attach to `stdout`. Default `false`.
|
||||
- **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
|
|
@ -1140,12 +1140,6 @@ Implements websocket protocol handshake according to [RFC 6455](http://tools.iet
|
|||
- **logs** – 1/True/true or 0/False/false, return logs. Default `false`.
|
||||
- **stream** – 1/True/true or 0/False/false, return stream.
|
||||
Default `false`.
|
||||
- **stdin** – 1/True/true or 0/False/false, if `stream=true`, attach
|
||||
to `stdin`. Default `false`.
|
||||
- **stdout** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stdout` log, if `stream=true`, attach to `stdout`. Default `false`.
|
||||
- **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
|
|
@ -1320,12 +1320,6 @@ Implements websocket protocol handshake according to [RFC 6455](http://tools.iet
|
|||
- **logs** – 1/True/true or 0/False/false, return logs. Default `false`.
|
||||
- **stream** – 1/True/true or 0/False/false, return stream.
|
||||
Default `false`.
|
||||
- **stdin** – 1/True/true or 0/False/false, if `stream=true`, attach
|
||||
to `stdin`. Default `false`.
|
||||
- **stdout** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stdout` log, if `stream=true`, attach to `stdout`. Default `false`.
|
||||
- **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
|
|
@ -1354,12 +1354,6 @@ Implements websocket protocol handshake according to [RFC 6455](http://tools.iet
|
|||
- **logs** – 1/True/true or 0/False/false, return logs. Default `false`.
|
||||
- **stream** – 1/True/true or 0/False/false, return stream.
|
||||
Default `false`.
|
||||
- **stdin** – 1/True/true or 0/False/false, if `stream=true`, attach
|
||||
to `stdin`. Default `false`.
|
||||
- **stdout** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stdout` log, if `stream=true`, attach to `stdout`. Default `false`.
|
||||
- **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
|
|
@ -1400,12 +1400,6 @@ Implements websocket protocol handshake according to [RFC 6455](http://tools.iet
|
|||
- **logs** – 1/True/true or 0/False/false, return logs. Default `false`.
|
||||
- **stream** – 1/True/true or 0/False/false, return stream.
|
||||
Default `false`.
|
||||
- **stdin** – 1/True/true or 0/False/false, if `stream=true`, attach
|
||||
to `stdin`. Default `false`.
|
||||
- **stdout** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stdout` log, if `stream=true`, attach to `stdout`. Default `false`.
|
||||
- **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
|
||||
`stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
|
|
@ -3984,21 +3984,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -3989,21 +3989,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -4057,21 +4057,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -4149,21 +4149,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -4183,21 +4183,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -4409,21 +4409,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -4479,21 +4479,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -5719,21 +5719,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -5724,21 +5724,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -5753,21 +5753,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -5740,21 +5740,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -5762,21 +5762,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -5789,21 +5789,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -5850,21 +5850,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -6866,21 +6866,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -7172,21 +7172,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -7353,21 +7353,6 @@ paths:
|
|||
description: "Return stream"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdin"
|
||||
in: "query"
|
||||
description: "Attach to `stdin`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stdout"
|
||||
in: "query"
|
||||
description: "Attach to `stdout`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
- name: "stderr"
|
||||
in: "query"
|
||||
description: "Attach to `stderr`"
|
||||
type: "boolean"
|
||||
default: false
|
||||
tags: ["Container"]
|
||||
/containers/{id}/wait:
|
||||
post:
|
||||
|
|
|
@ -87,8 +87,13 @@ keywords: "API, Docker, rcli, REST, documentation"
|
|||
* The `Volume` type, as returned by `Added new `ClusterVolume` fields
|
||||
* Added a new `PUT /volumes{name}` endpoint to update cluster volumes (CNI).
|
||||
Cluster volumes are only supported if the daemon is a Swarm manager.
|
||||
* `/containers/{name}/attach/ws` endpoint only attach to configured streams
|
||||
according to `stdin`, `stdout` and `stderr` parameters.
|
||||
* `GET /containers/{name}/attach/ws` endpoint now accepts `stdin`, `stdout` and
|
||||
`stderr` query parameters to only attach to configured streams.
|
||||
|
||||
NOTE: These parameters were documented before in older API versions, but not
|
||||
actually supported. API versions before v1.42 continue to ignore these parameters
|
||||
and default to attaching to all streams. To preserve the pre-v1.42 behavior,
|
||||
set all three query parameters (`?stdin=1,stdout=1,stderr=1`).
|
||||
|
||||
## v1.41 API changes
|
||||
|
||||
|
|
Loading…
Reference in a new issue