Errror on pulling images
When pulling image with python2
and docker-py2
, there occurs an error:
ERROR: test_build_local (tests.test_api.ApiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/app-sources/tests/test_api.py", line 50, in test_build_local
make_test_on_containers_local(self.client, "id", _make_temp_dir_context)
File "/app-sources/tests/container_testing.py", line 66, in make_test_on_containers_local
image_builder = hapi.build(path=builder_dir).id
File "/app-sources/hatchery/api.py", line 90, in build
return builder.build()
File "/app-sources/hatchery/core/build.py", line 53, in build
self._create_new_layer(layer)
File "/app-sources/hatchery/core/build.py", line 85, in _create_new_layer
layer.conf.current_container = self._create_base_container()
File "/app-sources/hatchery/core/build.py", line 75, in _create_base_container
self.client.pull_image(image)
File "/app-sources/hatchery/core/client.py", line 293, in pull_image
image = self.client.images.pull(name=image_name, tag=image_tag)
File "/app-sources/.eggs/docker-2.2.0-py2.7.egg/docker/models/images.py", line 260, in pull
return self.get(name)
File "/app-sources/.eggs/docker-2.2.0-py2.7.egg/docker/models/images.py", line 190, in get
return self.prepare_model(self.client.api.inspect_image(name))
File "/app-sources/.eggs/docker-2.2.0-py2.7.egg/docker/utils/decorators.py", line 21, in wrapped
return f(self, resource_id, *args, **kwargs)
File "/app-sources/.eggs/docker-2.2.0-py2.7.egg/docker/api/image.py", line 262, in inspect_image
self._get(self._url("/images/{0}/json", image)), True
File "/app-sources/.eggs/docker-2.2.0-py2.7.egg/docker/api/client.py", line 220, in _result
self._raise_for_status(response)
File "/app-sources/.eggs/docker-2.2.0-py2.7.egg/docker/api/client.py", line 216, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "/app-sources/.eggs/docker-2.2.0-py2.7.egg/docker/errors.py", line 30, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
ImageNotFound: 404 Client Error: Not Found for url: http+docker://localunixsocket/v1.24/images/alpine/json ("No such image: alpine")