Khushiyant
cf688d27b2
feat: add cgroup to host config--according to api docs (closes#2340)
...
Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
fix: unexpected keyword argument
Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
2025-03-02 00:26:13 +05:30
Aarni Koskela
d50cc429c2
Enable Ruff I (import sort), autofix
...
Signed-off-by: Aarni Koskela <akx@iki.fi>
2024-01-03 21:28:56 +02:00
RazCrimson
443a35360f
Fix container.stats infinite blocking on stream mode ( #3120 )
...
fix: api - container.stats infinite blocking on stream mode
Includes additional test for no streaming
Signed-off-by: Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com>
2023-05-07 19:51:24 -04:00
Andy Roxby
e9d4ddfaec
api: add `one-shot` option to container `stats` ( #3089 )
...
Signed-off-by: Andy Roxby <107427605+aroxby-wayscript@users.noreply.github.com>
2023-02-16 10:27:45 -05:00
Rhiza
923e067ddd
api: add support for floats to docker logs params since / until ( #3031 )
...
Add support for floats to docker logs params `since` / `until` since the
Docker Engine APIs support it.
This allows using fractional seconds for greater precision.
Signed-off-by: Archi Moebius <poerhiz@gmail.com>
2022-08-19 15:10:53 -04:00
Milas Bowman
e901eac7a8
test: add additional tests for cgroupns option ( #3024 )
...
See #2930 .
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2022-08-12 14:27:53 -04:00
Felix Fontein
1a4cacdfb6
api: add platform to container create ( #2927 )
...
Add platform parameter for container creation/run
Signed-off-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
Co-authored-by: Milas Bowman <milas.bowman@docker.com>
2022-07-29 13:57:30 -04:00
Ben Fasoli
23cf16f03a
client: use 12 character short IDs ( #2862 )
...
Use 12 characters for Docker resource IDs for
consistency with the Docker CLI.
Signed-off-by: Ben Fasoli <benfasoli@gmail.com>
2022-07-29 09:06:22 -04:00
Hugo van Kemenade
4bb99311e2
Don't install mock backport
...
Signed-off-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-10-11 23:06:12 +03:00
Anthony Sottile
5fcc293ba2
use python3.6+ constructs
...
Signed-off-by: Anthony Sottile <asottile@umich.edu>
2021-07-05 18:30:07 -04:00
Lucidiot
dd0450a14c
Add device requests ( #2471 )
...
* Add DeviceRequest type
Signed-off-by: Erwan Rouchet <rouchet@teklia.com>
* Add device_requests kwarg in host config
Signed-off-by: Erwan Rouchet <rouchet@teklia.com>
* Add unit test for device requests
Signed-off-by: Erwan Rouchet <rouchet@teklia.com>
* Fix unit test
Signed-off-by: Erwan Rouchet <rouchet@teklia.com>
* Use parentheses for multiline import
Signed-off-by: Erwan Rouchet <rouchet@teklia.com>
* Create 1.40 client for device-requests test
Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
Co-authored-by: Laurie O <laurie_opperman@hotmail.com>
Co-authored-by: Bastien Abadie <abadie@teklia.com>
2020-08-07 13:58:35 +02:00
Joffrey F
2454e81026
Total timeout should be HTTP timeout + operation timeout
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-04-25 17:55:16 -07:00
Matthieu Nottale
1848d2c949
stop(), restart(): Adjust request timeout.
...
Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
2018-04-25 17:55:16 -07:00
Joffrey F
df8422d079
Refuse API version < 1.21 ; Remove associated code paths
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-31 14:42:01 -08:00
Joffrey F
3422211309
Use pytest asserts
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-30 14:26:24 -08:00
Joffrey F
abd60aedc7
Bump default API version to 1.35
...
Add ContainerSpec.isolation support
Add until support in logs
Add condition support in wait
Add workdir support in exec_create
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 13:56:01 -08:00
Chris Mark
c03a009e2d
Raising error in case of invalid value of since kwarg on Container.logs
...
Signed-off-by: Chris Mark <chrismarkou92@gmail.com>
2017-06-16 18:30:24 +03:00
Dan Liew
2a0a7adece
Fix typo s/CpuSetCpus/CpusetCpus/
...
According to Docker's API documentation [1]. The parameter name
is `CpusetCpus` not `CpuSetCpus`.
[1] https://docs.docker.com/engine/api/v1.25/#operation/ContainerCreate
Signed-off-by: Dan Liew <daniel.liew@imperial.ac.uk>
2017-05-01 14:56:40 +01:00
Dan Liew
b9ca8755bb
Add missing support for `CpusetMems` parameter to HostConfig.
...
Signed-off-by: Dan Liew <daniel.liew@imperial.ac.uk>
2017-05-01 14:56:40 +01:00
Alexey Rokhin
c2f83d558e
cpus renamed to nano_cpus. Type and scale of nano_cpus are changed. Comments for new parameters are changed.
...
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
2017-04-28 15:55:44 +03:00
Alexey Rokhin
3f7d622143
Add cpu_count, cpu_percent, cpus parameters to container HostConfig.
...
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
2017-04-19 15:07:02 +03:00
Joffrey F
79edcc28f7
Add support for volume_driver in HostConfig
...
Some cleanup in ContainerConfig + warning if volume_driver is provided (API>1.20)
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-04-05 17:05:08 -07:00
Joffrey F
e8a86e40cc
Add tests for secret API implementation
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-13 17:06:25 -08:00
Joffrey F
5eacb986d7
Remove support for host_config in Client.start
...
Any additional arguments passed to start will raise a
DeprecatedMethod (DockerException) exception.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-28 18:34:09 +00:00
Ben Firshman
e055a1c813
Rename DockerClientTest to BaseAPIClientTest
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-22 17:03:04 +00:00
Ben Firshman
9daa320454
Rename Client to APIClient
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-22 17:03:03 +00:00