File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,8 @@ def pull(
324
324
auth_config (Mapping[str, str]) – Override the credentials that are found in the
325
325
config for this request. auth_config should contain the username and password
326
326
keys to be valid.
327
+ compatMode (bool) – Return the same JSON payload as the Docker-compat endpoint.
328
+ Default: True.
327
329
decode (bool) – Decode the JSON data from the server into dicts.
328
330
Only applies with ``stream=True``
329
331
platform (str) – Platform in the format os[/arch[/variant]]
@@ -357,7 +359,8 @@ def pull(
357
359
358
360
params = {
359
361
"reference" : repository ,
360
- "tlsVerify" : kwargs .get ("tls_verify" ),
362
+ "tlsVerify" : kwargs .get ("tls_verify" , True ),
363
+ "compatMode" : kwargs .get ("compatMode" , True ),
361
364
}
362
365
363
366
if all_tags :
@@ -409,7 +412,7 @@ def pull(
409
412
if stream :
410
413
return self ._stream_helper (response , decode = kwargs .get ("decode" ))
411
414
412
- for item in response .iter_lines ():
415
+ for item in reversed ( list ( response .iter_lines ()) ):
413
416
obj = json .loads (item )
414
417
if all_tags and "images" in obj :
415
418
images : List [Image ] = []
You can’t perform that action at this time.
0 commit comments