To enable direct-lvm mode for devicemapper, which configuration should be set?

Prepare for the Docker Certified Associate test with our comprehensive quizzes that include key questions and detailed explanations. Ace your certification!

To enable direct-lvm mode for devicemapper in Docker, the specific configuration that should be set is dm.directlvm_device in the /etc/docker/daemon.json file. This setting is crucial because it specifies the underlying block device that Docker should use in direct-lvm mode, allowing for improved performance and management of storage.

In direct-lvm mode, Docker uses the device mapper storage driver to directly manage block devices instead of using loopback devices, which can be inefficient. By configuring dm.directlvm_device, you are instructing Docker where to store its container images and data volumes, ensuring that Docker can interact with the block storage directly and efficiently.

The other options refer to configurations that either don't exist or don't serve the purpose of enabling direct-lvm mode specifically. Therefore, setting dm.directlvm_device is essential for proper functioning in this mode, making it the correct choice for configuring the Docker daemon.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy