| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
Signed-off-by: John Yang <john.yang20@berkeley.edu>
|
| |
|
| |
Signed-off-by: Aarni Koskela <akx@iki.fi>
|
| |
|
| |
Signed-off-by: Lorin Bucher <lorin@lbtec.dev>
|
| |\
| |
| |
| | |
(Old PR unintentionally went to the `master` branch.)
|
| | |
| |
| | |
Signed-off-by: Mariano Scazzariello <marianoscazzariello@gmail.com>
|
| | |
| |
| | |
Signed-off-by: Maxim Mironyuk <serieznyi@gmail.com>
|
| | |
| |
| |
| |
| |
| | |
Only remove `:ro` or `:rw` suffixes in their entirety; do not
strip arbitrary `r` / `o` / `w` / `:` characters individually.
Signed-off-by: Loïc Leyendecker <loic.leyendecker@gmail.com>
|
| |/
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Adds support for setting the UDP port used for VXLAN traffic between
swarm nodes
Signed-off-by: Chris Hand <dexteradeus@users.noreply.github.com>
|
| |
|
| |
Signed-off-by: Quentin Mathorel <quentin.mathorel@outlook.fr>
|
| |
|
|
|
|
|
| |
Add `global-job` and `replicated-job` modes
Fixes #2829.
Signed-off-by: Leonard Kinday <leonard@kinday.ru>
|
| |
|
|
|
| |
Remove duplicate 'on' in comment
Signed-off-by: Thomas Gassmann <thomas.gassmann@hotmail.com>
|
| |
|
|
|
| |
I changed was build > was built and reorganized a few sentences to be more clear.
Signed-off-by: InnovativeInventor <theinnovativeinventor@gmail.com>
|
| |
|
|
| |
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Allow an Image to be deleted by calling the remove() method on it,
just like a Volume.
Signed-off-by: Ahmon Dancy <dancy@dancysoft.com>
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
Co-authored-by: Ahmon Dancy <dancy@dancysoft.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
`rollback_config` was not in the list of `CREATE_SERVICE_KWARGS`
which prevented it from being an argument when creating services.
It has now been added and the problem fixed, allowing services to
have a rollback_config during creation and updating.
Fixes #2832.
Signed-off-by: Fraser Patten <pattenf00@gmail.com>
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
Co-authored-by: Milas Bowman <milas.bowman@docker.com>
|
| | |
| |
| | |
Signed-off-by: till <till@php.net>
|
| | |
| |
| | |
Signed-off-by: David Otto <ottodavid@gmx.net>
|
| | |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| |
| |
| |
| |
| | |
Use 12 characters for Docker resource IDs for
consistency with the Docker CLI.
Signed-off-by: Ben Fasoli <benfasoli@gmail.com>
|
| | |
| |
| |
| |
| |
| |
| | |
Since flake8 wasn't actually being run in CI, we'd accumulated some
violations.
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
| | |\
| | |
| | | |
Add service capability
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ContainerSpec
Docker Engine v1.41 added `CapAdd` and `CapDrop` as part of the
ContainerSpec, and `docker-py` should do the same.
```
GET /services now returns CapAdd and CapDrop as part of the ContainerSpec.
GET /services/{id} now returns CapAdd and CapDrop as part of the ContainerSpec.
POST /services/create now accepts CapAdd and CapDrop as part of the ContainerSpec.
POST /services/{id}/update now accepts CapAdd and CapDrop as part of the ContainerSpec.
GET /tasks now returns CapAdd and CapDrop as part of the ContainerSpec.
GET /tasks/{id} now returns CapAdd and CapDrop as part of the ContainerSpec.
```
I added capabilities on docstrings, `service.create` init method and
create tests for that.
That change was mention in issue #2802.
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
|
| | | |
| | |
| | |
| | | |
Signed-off-by: sinarostami <Sinarostami4188.1@gmail.com>
|
| | | |
| | |
| | |
| | | |
Signed-off-by: Anthony Sottile <asottile@umich.edu>
|
| | |/
| |
| |
| | |
Signed-off-by: Roger Camargo <huogerac@gmail.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
How to reproduce the issue:
```py
>>> import docker
>>> cli = docker.from_env()
>>> cli.secrets.create(name="any_name", data="1")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/docker-py/docker/models/secrets.py", line 10, in __repr__
return "<%s: '%s'>" % (self.__class__.__name__, self.name)
File "/home/docker-py/docker/models/secrets.py", line 14, in name
return self.attrs['Spec']['Name']
KeyError: 'Spec'
```
The exception raises because create secrets API `/secrets/create` only
return the `id` attribute:
https://docs.docker.com/engine/api/v1.41/#operation/SecretCreate
The secret model is created using just the `id` attribute and fails
when looking for Spec.Name attribute.
```py
def __repr__(self):
return "<%s: '%s'>" % (self.__class__.__name__, self.name)
```
```py
@property
def name(self):
return self.attrs['Spec']['Name']
```
I came up with a ugly solution but will prevent the problem to happen
again:
```py
def create(self, **kwargs):
obj = self.client.api.create_secret(**kwargs)
+ obj.setdefault("Spec", {})["Name"] = kwargs.get("name")
return self.prepare_model(obj)
```
After the API call, I added the name attribute to the right place to be
used on the property name.
```py
>>> import docker
>>> cli = docker.from_env()
>>> cli.secrets.create(name="any_name", data="1")
<Secret: 'any_name'>
```
It isn't the most elegant solution, but it will do the trick.
I had a previous PR #2517 when I propose using the `id` attribute
instead of `name` on the `__repr__` method, but I think this one will be better.
That fixes #2025
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
|
| | |
| |
| |
| |
| |
| | |
Swarm Service
Signed-off-by: WojciechowskiPiotr <devel@it-playground.pl>
|
| | |
| |
| |
| | |
Signed-off-by: aiordache <anca.iordache@docker.com>
|
| | |
| |
| |
| | |
Signed-off-by: Daeseok Youn <daeseok.youn@navercorp.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The binding ports are ignored where the network mode is 'host'.
It could be a problem in case of using these options together on
Mac or Windows OS. Because the limitation that could not use
the 'host' in network_mode on Mac and Windows. When 'host' mode
is set on network_mode, the specific ports in 'ports' are ignored
so the network is not able to be accessed through defined ports
by developer.
Signed-off-by: Daeseok Youn <daeseok.youn@navercorp.com>
|
| | |\
| | |
| | | |
Fix plugin model upgrade
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When upgrading a plugin via the model interface, it would yield the
following error:
AttributeError: 'Plugin' object has no attribute '_reload'
It appears that the proper method is `self.reload()`. This is what is
used by all other methods in the class and base. I'm not finding any
references to `_reload` apart from this instance in the project either.
I've verified that this patch fixes the issue on my machine and all
tests pass.
Signed-off-by: Ian Fijolek <ian@iamthefij.com>
|
| | | |
| | |
| | |
| | | |
Signed-off-by: aiordache <anca.iordache@docker.com>
|
| | |/
| |
| |
| | |
Signed-off-by: aiordache <anca.iordache@docker.com>
|
| | |\
| | |
| | | |
Disable compression by default when using container:get_archive method
|
| | | |
| | |
| | |
| | | |
Signed-off-by: Niklas Saari <niklas.saari@tutanota.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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>
|
| | |/
| |
| |
| |
| |
| |
| | |
Docker API 1.32 added support for providing options to a network driver
via EndpointConfig when connecting a container to a network.
Signed-off-by: Mike Haboustak <haboustak@gmail.com>
|
| |/
|
|
| |
Signed-off-by: Janosch Deurer <deurer@mps-med.de>
|
| |\
| |
| | |
Add NetworkAttachmentConfig for service create/update
|
| | |
| |
| |
| | |
Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
|
| | |
| |
| |
| | |
Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
|
| | |
| |
| |
| | |
Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
|
| |\ \
| | |
| | | |
Amends the docs concerning multiple label filters
|
| | |/
| |
| |
| |
| |
| | |
Closes #2338
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
| |
The documentation was added for function ContainerCollection::run and
ContainerApiMixin::create_host_config.
Signed-off-by: Francis Laniel <francis.laniel@lip6.fr>
Add documentation to argument 'mem_reservation'.
The documentation was added for function ContainerCollection::run and
ContainerApiMixin::create_host_config.
Signed-off-by: Francis Laniel <francis.laniel@lip6.fr>
|
| |
|
|
| |
Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
|
| |\
| |
| | |
Return node id on swarm init
|