ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 257 - XK0-005 discussion

Report
Export

A Linux administrator has defined a systemd script docker-repository.mount to mount a volume for use by the Docker service. The administrator wants to ensure that Docker service does not start until the volume is mounted. Which of the following configurations needs to be added to the Docker service definition to best accomplish this task?

A.
After=docker-respository.mount
Answers
A.
After=docker-respository.mount
B.
ExecStart=/usr/bin/mount -a
Answers
B.
ExecStart=/usr/bin/mount -a
C.
Requires=docker-repository.mount
Answers
C.
Requires=docker-repository.mount
D.
RequiresMountsFor=docker-repository.mount
Answers
D.
RequiresMountsFor=docker-repository.mount
Suggested answer: C

Explanation:

This option declares an explicit dependency between the Docker service and the docker-repository.mount unit. It means that the Docker service will not start unless the docker-repository.mount unit is successfully activated.This ensures that the volume is mounted before the Docker service tries to use it12.

asked 02/10/2024
Christian Galea
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first