ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 35 - 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 service create myorg/myimage:1.0

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A

Explanation:

When content trust is enabled, Docker blocks any command that operates on unsigned images, such as docker service create. This is because Docker Content Trust (DCT) allows users to verify the integrity and publisher of specific image tags, using digital signatures stored on a Notary server. If an image tag is not signed, or the signature cannot be verified, Docker will refuse to pull, run, or build with that image. Therefore, if myorg/myimage:1.0 is unsigned, Docker will block the command docker service create myorg/myimage:1.0 and display an error message.Reference:

Content trust in Docker

Docker Content Trust: What It Is and How It Secures Container Images

Automation with content trust

asked 08/11/2024
Cesar Augusto Veliz Reyes
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first