Answers: <p>DOCKER_CONTENT_TRUST=1 this is env variable to enable Docker content trust by default it is in disable mode.</p>
  
  <p>read more about DCT in official docs <a href="https://docs.docker.com/v17.09/engine/security/trust/content_trust/" rel="nofollow noreferrer">DCT docs</a></p>
  
  <p>For specific  build/push/pull you can use as docker command line flag as well</p>
  
  <p>--disable-content-trust=false or --disable-content-trust=true</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-04-07T09:52:28.477Z
Answers: 2019-04-07T09:52:28.477Z
Answers: ankit
Body: <p>I am trying to understand this flag DOCKER_CONTENT_TRUST=1 but not able to figure it out. How does it effect pushing images and pulling images, let's say from docker hub?</p>
  
Comments: CC BY-SA 4.0
Comments: 2019-04-04T03:01:56.347Z
Comments: Did you read the official doc? [Content trust in Docker](https://docs.docker.com/v17.09/engine/security/trust/content_trust/)
Comments: Eduardo Baitello
Comments: CC BY-SA 4.0
Comments: 2021-05-27T08:53:13.253Z
Comments: See also https://devops.stackexchange.com/questions/13987/how-to-pin-public-root-key-when-downloading-an-image-with-docker-pull-docker-co/13988#13988
Comments: Michael Altfield
Tags: <docker>
Title: What is DOCKER_CONTENT_TRUST flag?
UserDisplayName: Arpan Solanki
ThreadText: # What is DOCKER_CONTENT_TRUST flag?
  
  (Asked by: username_0 on 2019-04-03)
  
  I am trying to understand this flag DOCKER\_CONTENT\_TRUST=1 but not able to figure it out. How does it effect pushing images and pulling images, let's say from docker hub?
  
  **Tags:** docker
  
  > **Comments:**
  > **username_1**: Did you read the official doc? [Content trust in Docker](https://docs.docker.com/v17.09/engine/security/trust/content_trust/)  
  > **username_2**: See also https://devops.stackexchange.com/questions/13987/how-to-pin-public-root-key-when-downloading-an-image-with-docker-pull-docker-co/13988#13988  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2019-04-07. Score: 2
  
  DOCKER\_CONTENT\_TRUST=1 this is env variable to enable Docker content trust by default it is in disable mode.
  
  read more about DCT in official docs [DCT docs](https://docs.docker.com/v17.09/engine/security/trust/content_trust/)
  
  For specific build/push/pull you can use as docker command line flag as well
  
  --disable-content-trust=false or --disable-content-trust=true
  
  
  ---
  
  