diff options
Diffstat (limited to 'docker/errors.py')
-rw-r--r-- | docker/errors.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/errors.py b/docker/errors.py index 8572007..05f4cae 100644 --- a/docker/errors.py +++ b/docker/errors.py @@ -21,7 +21,9 @@ def create_api_error_from_http_exception(e): explanation = response.content.strip() cls = APIError if response.status_code == 404: - if explanation and 'No such image' in str(explanation): + if explanation and ('No such image' in str(explanation) or + 'not found: does not exist or no read access' + in str(explanation)): cls = ImageNotFound else: cls = NotFound |