CompTIA Linux+ (XK0-005) — Question 259

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?

Answer options

Correct answer: C

Explanation

The correct configuration is Requires=docker-repository.mount, as it ensures that the Docker service will not start unless the specified mount is active. The other options either do not create a dependency on the mount or do not achieve the goal of delaying the Docker service until the volume is ready.