Skip to content

Commit 36b2d81

Browse files
authored
Merge pull request #1590 from alfred-landrum/denied-error
Update image create error parsing
2 parents 0a94e5a + 02c5914 commit 36b2d81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/errors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def create_api_error_from_http_exception(e):
2323
if response.status_code == 404:
2424
if explanation and ('No such image' in str(explanation) or
2525
'not found: does not exist or no pull access'
26-
in str(explanation)):
26+
in str(explanation) or
27+
'repository does not exist' in str(explanation)):
2728
cls = ImageNotFound
2829
else:
2930
cls = NotFound

0 commit comments

Comments
 (0)