<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>

CC BY-SA 4.0
2019-04-07T09:52:28.477Z
2019-04-07T09:52:28.477Z
ankit
<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>

CC BY-SA 4.0
2019-04-04T03:01:56.347Z
Did you read the official doc? [Content trust in Docker](https://docs.docker.com/v17.09/engine/security/trust/content_trust/)
Eduardo Baitello
CC BY-SA 4.0
2021-05-27T08:53:13.253Z
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
Michael Altfield
<docker>
What is DOCKER_CONTENT_TRUST flag?
Arpan Solanki
# 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


---

