ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 51 - DCA discussion

Report
Export

Will this command mount the host's '/data' directory to the ubuntu container in read-only mode?

Solution: 'docker run --add-volume /data /mydata -read-only ubuntu'

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

n: = Using the DTR web UI to make all tags in the repository immutable is not a good way to prevent an image, such as 'nginx:latest', from being overwritten by another user with push access to the repository. This is because making all tags immutable would prevent any updates to the images in the repository, which may not be desirable for some use cases. For example, if a user wants to push a new version of 'nginx:latest' with a security patch, they would not be able to do so if the tag is immutable.A better way to prevent an image from being overwritten by another user is to use the DTR web UI to create a promotion policy that restricts who can push to a specific tag or repository1.Alternatively, the user can also use the DTR API to create a webhook that triggers a custom action when an image is pushed to a repository2.Reference:

Prevent tags from being overwritten | Docker Docs

Create webhooks | Docker Docs

asked 08/11/2024
Larry Warren
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first