Enabling and Disabling DCT
if you want to use DCT so first requirement is the Docker should be installed in your system. you need to run this command for enabling the DCT.
The DOCKER_CONTENT_TRUST = 1 is used for setting up DCT . for enabling setting its value = 1
export "DOCKER_CONTENT_TRUST=1"
if you want so can set up this environment variables value as 0. so it will disable the DCT. but it is recommended to set up it’s value as 1 because it good for security
export "DOCKER_CONTENT_TRUST=0"
What Is Docker Trust Content ?
When we are using Docker images, we must think about whether the image we are using is trustworthy or not, because trust is a central concern in every field. especially when we download external resources from our local system. In this scenario, Docker comes up with a special security feature called Docker Content Trust (DCT).