diff options
author | Alfred Landrum <alfred@leakybucket.org> | 2017-05-04 16:22:15 -0700 |
---|---|---|
committer | Alfred Landrum <alfred@leakybucket.org> | 2017-05-04 16:22:18 -0700 |
commit | 02c5914d29a8706cadc22317f8b5abd1630ce373 (patch) | |
tree | 541d5a64a87aced114e10b4a589db1ab0d8564f2 | |
parent | 0a94e5a945a7c015177c75394735a78df0c62bba (diff) | |
download | docker-py-02c5914d29a8706cadc22317f8b5abd1630ce373.tar.gz |
Update image create error parsing
Support new error message returned for image creation in:
https://github.com/moby/moby/pull/33005
Signed-off-by: Alfred Landrum <alfred@leakybucket.org>
-rw-r--r-- | docker/errors.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/errors.py b/docker/errors.py index 03b89c1..0da97f4 100644 --- a/docker/errors.py +++ b/docker/errors.py @@ -23,7 +23,8 @@ def create_api_error_from_http_exception(e): if response.status_code == 404: if explanation and ('No such image' in str(explanation) or 'not found: does not exist or no pull access' - in str(explanation)): + in str(explanation) or + 'repository does not exist' in str(explanation)): cls = ImageNotFound else: cls = NotFound |