• adw1n's avatar
    Fix pulling images with `stream=True` · a74d5468
    adw1n yazdı
    Pulling an image with option `stream=True` like this:
    ```
    client.api.pull('docker.io/user/repo_name', tag='latest', stream=True)
    ```
    without consuming the generator oftentimes results in premature drop of the connection. Docker daemon tries to send progress of pulling the image to the client, but it encounters an error (broken pipe) and therefore cancells the pull action:
    ```
    Thread 1 "dockerd-dev" received signal SIGPIPE, Broken pipe.
    ERRO[2018-09-03T05:12:35.746497638+02:00] Not continuing with pull after error: context canceled
    ```
    As described in issue #2116, even though client receives response with status code 200, image is not pulled.
    
    Closes #2116
    Signed-off-by: 's avatarPrzemysław Adamek <adw1n@users.noreply.github.com>
    a74d5468
Adı
Son kayıt (commit)
Son güncelleme
..
__init__.py Loading commit data...
build.py Loading commit data...
client.py Loading commit data...
config.py Loading commit data...
container.py Loading commit data...
daemon.py Loading commit data...
exec_api.py Loading commit data...
image.py Loading commit data...
network.py Loading commit data...
plugin.py Loading commit data...
secret.py Loading commit data...
service.py Loading commit data...
swarm.py Loading commit data...
volume.py Loading commit data...