mirror of https://github.com/docker/docker-py.git
Merge pull request #63 from aanand/remove-custom-404-message
Remove custom error message for image 404
This commit is contained in:
commit
6fe13a3b84
|
|
@ -241,9 +241,6 @@ class Client(requests.Session):
|
||||||
def create_container_from_config(self, config):
|
def create_container_from_config(self, config):
|
||||||
u = self._url("/containers/create")
|
u = self._url("/containers/create")
|
||||||
res = self._post_json(u, config)
|
res = self._post_json(u, config)
|
||||||
if res.status_code == 404:
|
|
||||||
self._raise_for_status(res, explanation="{0} is an unrecognized image. Please pull the "
|
|
||||||
"image first.".format(config['Image']))
|
|
||||||
return self._result(res, True)
|
return self._result(res, True)
|
||||||
|
|
||||||
def diff(self, container):
|
def diff(self, container):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue