Explanation: The correct syntax to create a Docker config is `docker config create <name> <file>`.
Dear candidates you will find MCQ questions of Docker here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Explanation: The correct syntax to create a Docker config is `docker config create <name> <file>`.
Explanation: Docker configs are immutable. To change a config, you must create a new one and update the service.
Explanation: `docker config ls` lists all available configs.
Explanation: Secrets are encrypted and stored securely; configs are used for non-sensitive data and are not encrypted.
Explanation: Docker mounts configs as files in the container at runtime.
Explanation: Configs are immutable; to update, a new config must be created and attached to the service.
Explanation: Docker configs are typically used to store plain-text config files such as `.conf`, `.json`, etc.
Explanation: `docker config inspect` shows metadata and optionally the content of the specified config.
Explanation: To use configs with services, the `--config` flag is used during `docker service create`.
Explanation: Configs are suitable for storing non-sensitive files like logging or application configuration files.