You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2019. It is now read-only.
The API is usually changed in each release of Docker, so API calls are versioned to ensure that clients don't break.
46
46
47
-
For Docker Engine >= 1.13.1, the API version is 1.26. To lock to this version, you prefix the URL with `/v1.26`. For example, calling `/info` is the same as calling `/v1.26/info`.
47
+
For Docker Engine >= 17.03.1, the API version is 1.27. To lock to this version, you prefix the URL with `/v1.27`. For example, calling `/info` is the same as calling `/v1.27/info`.
48
48
49
49
Engine releases in the near future should support this version of the API, so your client will continue to work even if it is talking to a newer Engine.
50
50
51
51
In previous versions of Docker, it was possible to access the API without providing a version. This behaviour is now deprecated will be removed in a future version of Docker.
52
52
53
53
The API uses an open schema model, which means server may add extra properties to responses. Likewise, the server will ignore any extra query parameters and request body properties. When you write clients, you need to ignore additional properties in responses to ensure they do not break when talking to newer Docker daemons.
54
54
55
-
This documentation is for version 1.26 of the API, which was introduced with Docker 1.13.1. Use this table to find documentation for previous versions of the API:
55
+
This documentation is for version 1.27 of the API, which was introduced with Docker 17.03.1. Use this table to find documentation for previous versions of the API:
Run new commands inside running containers. See the [command-line reference](https://docs.docker.com/engine/reference/commandline/exec/) for more information.
118
119
119
120
To exec a command in a container, you first need to create an exec instance, then start it. These two API endpoints are wrapped up in a single command-line command, `docker exec`.
120
-
- name: "Secret"
121
-
x-displayName: "Secrets"
122
121
# Swarm things
123
122
- name: "Swarm"
124
123
x-displayName: "Swarm"
@@ -136,6 +135,10 @@ tags:
136
135
x-displayName: "Tasks"
137
136
description: |
138
137
A task is a container running on a swarm. It is the atomic scheduling unit of swarm. Swarm mode must be enabled for these endpoints to work.
138
+
- name: "Secret"
139
+
x-displayName: "Secrets"
140
+
description: |
141
+
Secrets are sensitive data that can be used by services. Swarm mode must be enabled for these endpoints to work.
139
142
# System things
140
143
- name: "Plugin"
141
144
x-displayName: "Plugins"
@@ -3377,7 +3380,13 @@ paths:
3377
3380
description: |
3378
3381
This endpoint returns a live stream of a container’s resource usage statistics.
3379
3382
3380
-
The `precpu_stats` is the CPU statistic of last read, which is used for calculating the CPU usage percentage. It is not the same as the `cpu_stats` field.
3383
+
The `precpu_stats` is the CPU statistic of last read, which is used
3384
+
for calculating the CPU usage percentage. It is not the same as the
3385
+
`cpu_stats` field.
3386
+
3387
+
If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is
3388
+
nil then for compatibility with older daemons the length of the
3389
+
corresponding `cpu_usage.percpu_usage` array should be used.
3381
3390
operationId: "ContainerStats"
3382
3391
produces:
3383
3392
- "application/json"
@@ -3457,6 +3466,7 @@ paths:
3457
3466
total_usage: 100215355
3458
3467
usage_in_kernelmode: 30000000
3459
3468
system_cpu_usage: 739306590000000
3469
+
online_cpus: 4
3460
3470
throttling_data:
3461
3471
periods: 0
3462
3472
throttled_periods: 0
@@ -3472,6 +3482,7 @@ paths:
3472
3482
total_usage: 100093996
3473
3483
usage_in_kernelmode: 30000000
3474
3484
system_cpu_usage: 9492140000000
3485
+
online_cpus: 4
3475
3486
throttling_data:
3476
3487
periods: 0
3477
3488
throttled_periods: 0
@@ -6499,7 +6510,7 @@ paths:
6499
6510
schema:
6500
6511
$ref: "#/definitions/ErrorResponse"
6501
6512
parameters:
6502
-
- name: "name"
6513
+
- name: "remote"
6503
6514
in: "query"
6504
6515
description: "The name of the plugin. The `:latest` tag is optional, and is the default if omitted."
Copy file name to clipboardExpand all lines: src/Resource/ContainerAsyncResourceTrait.php
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -369,7 +369,13 @@ public function containerExport(string $id, array $parameters = [], string $fetc
369
369
/**
370
370
* This endpoint returns a live stream of a container’s resource usage statistics.
371
371
372
-
The `precpu_stats` is the CPU statistic of last read, which is used for calculating the CPU usage percentage. It is not the same as the `cpu_stats` field.
372
+
The `precpu_stats` is the CPU statistic of last read, which is used
373
+
for calculating the CPU usage percentage. It is not the same as the
374
+
`cpu_stats` field.
375
+
376
+
If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is
377
+
nil then for compatibility with older daemons the length of the
378
+
corresponding `cpu_usage.percpu_usage` array should be used.
Copy file name to clipboardExpand all lines: src/Resource/ContainerResourceTrait.php
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -334,7 +334,13 @@ public function containerExport(string $id, array $parameters = [], string $fetc
334
334
/**
335
335
* This endpoint returns a live stream of a container’s resource usage statistics.
336
336
337
-
The `precpu_stats` is the CPU statistic of last read, which is used for calculating the CPU usage percentage. It is not the same as the `cpu_stats` field.
337
+
The `precpu_stats` is the CPU statistic of last read, which is used
338
+
for calculating the CPU usage percentage. It is not the same as the
339
+
`cpu_stats` field.
340
+
341
+
If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is
342
+
nil then for compatibility with older daemons the length of the
343
+
corresponding `cpu_usage.percpu_usage` array should be used.
0 commit comments