ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 149 - DCA discussion

Report
Export

You configure a local Docker engine to enforce content trust by setting the environment variable

DOCKER_CONTENT_TRUST=1.

If myorg/myimage: 1.0 is unsigned, does Docker block this command?

Solution: docker container run myorg/myimage:1.0

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A

Explanation:

Docker will block the commanddocker container run myorg/myimage:1.0if the image tagmyorg/myimage:1.0is unsigned and the environment variableDOCKER_CONTENT_TRUST=1is set.The reason is that settingDOCKER_CONTENT_TRUST=1enables Docker Content Trust (DCT), which is a feature that allows users to verify the integrity and publisher of Docker images using digital signatures1. When DCT is enabled, Docker will only pull, run, or build images that have valid signatures.If an image tag is unsigned or has an invalid signature, Docker will reject the operation and display an error message2.Therefore, to run an unsigned image with DCT enabled, you need to either disable DCT by settingDOCKER_CONTENT_TRUST=0or use the--disable-content-trustflag, or sign the image tag with a valid key3.Reference:

Content trust in Docker

Determine if Docker image is signed or unsigned

Signing Images and Enabling Docker Content Trust

asked 08/11/2024
Yuri Shpovlov
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first