What configuration file must be modified to change direct-lvm settings for Docker?

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

To change direct-lvm settings for Docker, the configuration file that needs to be modified is /etc/docker/daemon.json. This file is specifically designed to contain configuration options for the Docker daemon, including storage driver settings.

Direct-lvm settings pertain to how the Docker Engine manages volumes and storage, particularly when using Logical Volume Management (LVM) for storage. By adjusting the parameters in daemon.json, you can optimize how Docker interacts with the underlying storage system, ensuring proper performance and resource allocation.

The other configuration files mentioned serve different purposes. For instance, daemon.conf might be misinterpreted as relevant for daemon settings but is typically not the standard file used for storing Docker daemon configurations; however, it might exist for certain distributions and setups. The config.json file is geared more towards user-specific configurations and not daemon-level settings, while system.json is not a standard Docker configuration file and does not pertain to direct-lvm configurations. Hence, modifying daemon.json is essential for controlling low-level storage configurations in Docker.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy