Skip to content

Commit 02c5914

Browse files
Update image create error parsing
Support new error message returned for image creation in: moby/moby#33005 Signed-off-by: Alfred Landrum <[email protected]>
1 parent 0a94e5a commit 02c5914

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)