ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 303 - 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 the 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-repository.mount

Answers
A.

After=docker-repository.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:

The Requires=docker-repository.mount directive in the Docker service file ensures that the Docker service depends on the docker-repository.mount unit. If the mount is not available, Docker will not start. This guarantees that the necessary volume is mounted before the Docker service attempts to use it.

asked 09/10/2024
Sanjay R Khiani
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first