Python Docker SDK Content Trust does not work

I want to enable content confidence when retrieving images from the Python Docker SDK. Currently, however, I do the following:


and then in Python3 I do:

Import Docker
client = docker.from_env ()
client.images.pull ("Some-Image-with-No-Remote-Trust-Data")

but it pulls the picture off successfully.


Docker pull some image data without remote trust data

give me the mistake: Error: Remote trust data is missing ...

I expect a similar error when I use python sdk, but I do not know … how can I fix it?