| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Fixing integration
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
|
|
| |
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
|
|
|
|
|
|
| |
Only listen to read events when polling a socket in order
to avoid incorrectly trying to read from a socket that is
not actually ready.
Signed-off-by: Loïc Leyendecker <loic.leyendecker@gmail.com>
|
|
|
| |
Signed-off-by: Imogen <59090860+ImogenBits@users.noreply.github.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
| |
Signed-off-by: John Yang <john.yang20@berkeley.edu>
|
|
|
|
|
|
| |
Requirements are the same, so it's still possible to use `urllib3 < 2`
or `requests == 2.28.2` for example.
Signed-off-by: Felix Fontein <felix@fontein.de>
|
|
|
|
|
|
|
|
| |
Fixes #2278, which was originally addressed in #2279, but was not
properly merged. Additionally it did not address the problem
of poll not existing on Windows. This patch falls back on the
more limited select method if host system is Windows.
Signed-off-by: Tyler Westland <tylerofthewest@gmail.com>
|
|
|
| |
Signed-off-by: Aarni Koskela <akx@iki.fi>
|
|
|
|
|
|
|
|
|
| |
Need to return data, not size. By returning an empty
string, EOF will be detected properly since `len()`
will be `0`.
Fixes #3098.
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
|
|
| |
Signed-off-by: Lorin Bucher <lorin@lbtec.dev>
|
|
|
| |
Signed-off-by: Andy Roxby <107427605+aroxby-wayscript@users.noreply.github.com>
|
|\
| |
| |
| | |
(Old PR unintentionally went to the `master` branch.)
|
| |
| |
| | |
Signed-off-by: Mariano Scazzariello <marianoscazzariello@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Requests with stream=True MUST be closed or else the connection will
never be returned to the connection pool. Both ContainerApiMixin.attach
and ExecApiMixin.exec_start were leaking in the stream=False case.
exec_start was modified to follow attach for the stream=True case as
that allows the caller to close the stream when done (untested).
Tested with:
# Test exec_run (stream=False) - observe one less leak
make integration-test-py3 file=models_containers_test.py' -k test_exec_run_success -vs -W error::ResourceWarning'
# Test exec_start (stream=True, fully reads from CancellableStream)
make integration-test-py3 file=api_exec_test.py' -k test_execute_command -vs -W error::ResourceWarning'
After this change, one resource leak is removed, the remaining resource
leaks occur because none of the tests call client.close().
Fixes https://github.com/docker/docker-py/issues/1293
(Regression from https://github.com/docker/docker-py/pull/1130)
Signed-off-by: Peter Wu <pwu@cloudflare.com>
Co-authored-by: Milas Bowman <milas.bowman@docker.com>
|
| |
| |
| | |
Signed-off-by: yanlong.wang <yanlong.wang@naiver.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bumps [setuptools](https://github.com/pypa/setuptools) from 63.2.0 to 65.5.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v63.2.0...v65.5.1)
---
updated-dependencies:
- dependency-name: setuptools
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.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>
|
| |
| |
| | |
Signed-off-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
| |
| |
| |
| |
| | |
Fixes https://github.com/docker/docker-py/issues/3045
Signed-off-by: Nick Santos <nick.santos@docker.com>
|
| |
| |
| |
| |
| |
| |
| | |
This is related to https://github.com/moby/moby/pull/44216
Prunes will, by default, no longer prune named volumes, only anonymous ones.
Signed-off-by: Brian Goff <cpuguy83@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>
|
|/
|
|
|
|
|
|
|
|
|
|
| |
I noticed one Dockerfile was pinned to 1.4; given that there's a
backward compatibility guarantee on the stable syntax, the general
recommendation is to use `dockerfile:1`, which makes sure that the
latest stable release of the Dockerfile syntax is pulled before
building.
While changing, I also made some minor changes to some Dockerfiles
to reduce some unneeded layers.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
|
|
| |
Need to install ourselves so that we can introspect on version
using `setuptools_scm` in `docs/conf.py`.
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
|
|
|
|
| |
See #2930.
Signed-off-by: Milas Bowman <milas.bowman@docker.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>
|
| | |
| | |
| | | |
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add `global-job` and `replicated-job` modes
Fixes #2829.
Signed-off-by: Leonard Kinday <leonard@kinday.ru>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
While removing any usage of the deprecated `distutils` package,
("The distutils package is deprecated and slated for removal in Python 3.12.")
this internal utility can be removed straightaway because the
`shutil.which` replacement for `distutils.spawn.find_executable`
already honors the `PATHEXT` environment variable in windows systems.
See https://docs.python.org/3/library/shutil.html#shutil.which
Signed-off-by: Daniel Möller <n1ngu@riseup.net>
|
| | |
| | |
| | |
| | |
| | | |
`preexec_func` is still None if it is win32
Signed-off-by: q0w <43147888+q0w@users.noreply.github.com>
|
| | |
| | |
| | | |
Signed-off-by: Saurav Maheshkar <sauravvmaheshkar@gmail.com>
|
| | |
| | |
| | |
| | |
| | | |
Remove duplicate 'on' in comment
Signed-off-by: Thomas Gassmann <thomas.gassmann@hotmail.com>
|
| | |
| | |
| | | |
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
| | |
| | |
| | |
| | |
| | | |
Because apparently `!` is special
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
GitHub Actions workflow to create a release: will upload to PyPI
and create a GitHub release with the `sdist` and `bdist_wheel`
as well.
The version code is switched to `setuptools_scm` to work well
with this flow (e.g. avoid needing to write a script that does
a `sed` on the version file and commits as part of release).
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
| | |
| | |
| | |
| | |
| | | |
Closes #2626.
Signed-off-by: Milas Bowman <milas.bowman@docker.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: Hristo Georgiev <hristo.a.georgiev@gmail.com>
|
| | |\
| | | |
| | | |
| | | | |
Manually merging #2595 to include a tiny fix.
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
|
| | | |\
| | | |/
| | |/| |
|
| | | |
| | | |
| | | | |
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Leaving out the verify parameter means verification will not be done.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
|
| | | |
| | | |
| | | |
| | | |
| | | | |
fix(dockerignore): trim trailing whitespace
Signed-off-by: Clément Loiselet <clement.loiselet@capgemini.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>
|