<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/docker-py.git/docker/api, branch main</title>
<subtitle>github.com: dotcloud/docker-py.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/'/>
<entry>
<title>Fix container.stats infinite blocking on stream mode (#3120)</title>
<updated>2023-05-07T23:51:24+00:00</updated>
<author>
<name>RazCrimson</name>
<email>52282402+RazCrimson@users.noreply.github.com</email>
</author>
<published>2023-05-07T23:51:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=443a35360fc426479d87c810ffca8e5a253408a1'/>
<id>443a35360fc426479d87c810ffca8e5a253408a1</id>
<content type='text'>
fix: api - container.stats infinite blocking on stream mode

Includes additional test for no streaming

Signed-off-by: Bharath Vignesh J K &lt;52282402+RazCrimson@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix: api - container.stats infinite blocking on stream mode

Includes additional test for no streaming

Signed-off-by: Bharath Vignesh J K &lt;52282402+RazCrimson@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>api: update return type of `diff` method (#3115)</title>
<updated>2023-05-05T20:21:46+00:00</updated>
<author>
<name>John Yang</name>
<email>byjohnyang@gmail.com</email>
</author>
<published>2023-05-05T20:21:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=576e47aaacf690a3fdd6cf98c345d48ecf834b7d'/>
<id>576e47aaacf690a3fdd6cf98c345d48ecf834b7d</id>
<content type='text'>
Signed-off-by: John Yang &lt;john.yang20@berkeley.edu&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: John Yang &lt;john.yang20@berkeley.edu&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>api: note the data arg may also be a stream in `put_archive` (#2478)</title>
<updated>2023-02-22T19:05:19+00:00</updated>
<author>
<name>Aarni Koskela</name>
<email>akx@iki.fi</email>
</author>
<published>2023-02-22T19:05:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=aaf68b7f98df7f886778395112267b9b0f6140bc'/>
<id>aaf68b7f98df7f886778395112267b9b0f6140bc</id>
<content type='text'>
Signed-off-by: Aarni Koskela &lt;akx@iki.fi&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Aarni Koskela &lt;akx@iki.fi&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>api: add `status` parameter to services list (#3093)</title>
<updated>2023-02-16T15:38:52+00:00</updated>
<author>
<name>Lorin Bucher</name>
<email>lorin@lbtec.dev</email>
</author>
<published>2023-02-16T15:38:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=7cd7458f2f41ef5af58589f28307a064936d7be1'/>
<id>7cd7458f2f41ef5af58589f28307a064936d7be1</id>
<content type='text'>
Signed-off-by: Lorin Bucher &lt;lorin@lbtec.dev&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lorin Bucher &lt;lorin@lbtec.dev&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>api: add `one-shot` option to container `stats` (#3089)</title>
<updated>2023-02-16T15:27:45+00:00</updated>
<author>
<name>Andy Roxby</name>
<email>107427605+aroxby-wayscript@users.noreply.github.com</email>
</author>
<published>2023-02-16T15:27:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=e9d4ddfaece229fbd2df1a1bfa3f4f513f33d1ac'/>
<id>e9d4ddfaece229fbd2df1a1bfa3f4f513f33d1ac</id>
<content type='text'>
Signed-off-by: Andy Roxby &lt;107427605+aroxby-wayscript@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andy Roxby &lt;107427605+aroxby-wayscript@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>exec: fix file handle leak with container.exec_* APIs (#2320)</title>
<updated>2023-01-13T20:41:01+00:00</updated>
<author>
<name>Peter Wu</name>
<email>peter@lekensteyn.nl</email>
</author>
<published>2023-01-13T20:41:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=34e6829dd40e99e9ba47ea02fcfabda09e08d36e'/>
<id>34e6829dd40e99e9ba47ea02fcfabda09e08d36e</id>
<content type='text'>
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 &lt;pwu@cloudflare.com&gt;
Co-authored-by: Milas Bowman &lt;milas.bowman@docker.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;pwu@cloudflare.com&gt;
Co-authored-by: Milas Bowman &lt;milas.bowman@docker.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>api: add support for floats to docker logs params since / until (#3031)</title>
<updated>2022-08-19T19:10:53+00:00</updated>
<author>
<name>Rhiza</name>
<email>6900588+ArchiMoebius@users.noreply.github.com</email>
</author>
<published>2022-08-19T19:10:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=923e067dddc3d4b86e4e620a99fcdcdafbd17a98'/>
<id>923e067dddc3d4b86e4e620a99fcdcdafbd17a98</id>
<content type='text'>
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 &lt;poerhiz@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;poerhiz@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>swarm: add support for DataPathPort on init (#2987)</title>
<updated>2022-08-12T13:58:57+00:00</updated>
<author>
<name>Chris Hand</name>
<email>dexteradeus@users.noreply.github.com</email>
</author>
<published>2022-08-12T13:58:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=fc86ab0d8501b10dbe9be203625e9002cf3922ed'/>
<id>fc86ab0d8501b10dbe9be203625e9002cf3922ed</id>
<content type='text'>
Adds support for setting the UDP port used for VXLAN traffic between
swarm nodes

Signed-off-by: Chris Hand &lt;dexteradeus@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds support for setting the UDP port used for VXLAN traffic between
swarm nodes

Signed-off-by: Chris Hand &lt;dexteradeus@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'upstream/main' into connect-with-mac</title>
<updated>2022-08-12T13:21:51+00:00</updated>
<author>
<name>Milas Bowman</name>
<email>milas.bowman@docker.com</email>
</author>
<published>2022-08-12T13:19:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=c03aeb659e2ac996aa69927e928b73d2979b9fce'/>
<id>c03aeb659e2ac996aa69927e928b73d2979b9fce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: add `gzip` arg to `BuildApiMixin` (#2929)</title>
<updated>2022-08-02T14:08:24+00:00</updated>
<author>
<name>Saurav Maheshkar</name>
<email>sauravvmaheshkar@gmail.com</email>
</author>
<published>2022-08-02T14:08:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=b7daa52feb8b897fb10fbe82c6e49a273746352a'/>
<id>b7daa52feb8b897fb10fbe82c6e49a273746352a</id>
<content type='text'>
Signed-off-by: Saurav Maheshkar &lt;sauravvmaheshkar@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Saurav Maheshkar &lt;sauravvmaheshkar@gmail.com&gt;</pre>
</div>
</content>
</entry>
</feed>
