Skip to content

Exception uploading largs squashed images to the docker daemon #43

Description

@tarnfeld

When squashing images if the resulting layer tar is pretty big, the upload to the docker daemon can time out... little annoying.

Traceback (most recent call last):
  File "/root/.pex/install/portainer-0.0.0-py2-none-any.whl.7628d6418f9f3bffd5f083bef25af07b42830cc4/portainer-0.0.0-py2-none-any.whl/portainer/app/executor.py", line 280, in _build_image
    image_id
  File "/root/.pex/install/portainer-0.0.0-py2-none-any.whl.7628d6418f9f3bffd5f083bef25af07b42830cc4/portainer-0.0.0-py2-none-any.whl/portainer/app/executor.py", line 395, in _squash_image
    self.docker.load_image(fh)
  File "/root/.pex/install/docker_py-0.4.0-py2-none-any.whl.e0fa1f14c557a519376f527fc49d19691f0dcda3/docker_py-0.4.0-py2-none-any.whl/docker/client.py", line 591, in load_image
    res = self._post(self._url("/images/load"), data=data)
  File "/root/.pex/install/docker_py-0.4.0-py2-none-any.whl.e0fa1f14c557a519376f527fc49d19691f0dcda3/docker_py-0.4.0-py2-none-any.whl/docker/client.py", line 71, in _post
    return self.post(url, **self._set_request_timeout(kwargs))
  File "/root/.pex/install/requests-2.2.1-py2.py3-none-any.whl.9ea9a9f3f3f0d6d1f8e5a19cd886b4a6857b590e/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 425, in post
    return self.request('POST', url, data=data, **kwargs)
  File "/root/.pex/install/requests-2.2.1-py2.py3-none-any.whl.9ea9a9f3f3f0d6d1f8e5a19cd886b4a6857b590e/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 383, in request
    resp = self.send(prep, **send_kwargs)
  File "/root/.pex/install/requests-2.2.1-py2.py3-none-any.whl.9ea9a9f3f3f0d6d1f8e5a19cd886b4a6857b590e/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 486, in send
    r = adapter.send(request, **kwargs)
  File "/root/.pex/install/requests-2.2.1-py2.py3-none-any.whl.9ea9a9f3f3f0d6d1f8e5a19cd886b4a6857b590e/requests-2.2.1-py2.py3-none-any.whl/requests/adapters.py", line 387, in send
    raise Timeout(e)
Timeout: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions