• adw1n's avatar
    Fix pulling images with `stream=True` · 7117855f
    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>
    7117855f
Adı
Son kayıt (commit)
Son güncelleme
docker Loading commit data...
docs Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.coveragerc Loading commit data...
.dockerignore Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
Dockerfile Loading commit data...
Dockerfile-docs Loading commit data...
Dockerfile-py3 Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
appveyor.yml Loading commit data...
docs-requirements.txt Loading commit data...
pytest.ini Loading commit data...
requirements.txt Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
test-requirements.txt Loading commit data...
tox.ini Loading commit data...
win32-requirements.txt Loading commit data...