Docker Community Forums

Share and learn in the Docker community.

Pulling an image via docker api: how to set "disable-content-trust"?

(Dan Teeter) #1

I would like to do the equivalent of “disable-content-trust=false” when calling the docker API and pulling an image ( i.e. set disable-content-trust when POSTing to /images/create?fromImage=… ).

The api docs for /images/create mention the parameters: fromImage, fromSrc, repo, tag and the header X-Registry-Auth, but nothing related to content trust)

Is there an undocumented way to set “disable-content-trust” via the API?