Explanation: Only the Docker daemon has access to secrets stored on a Swarm manager node.
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: Only the Docker daemon has access to secrets stored on a Swarm manager node.
Explanation: Each secret is added to a service using a separate `--secret` flag.
Explanation: Secrets can be reused by different services if explicitly attached to each.
Explanation: Secrets have 0400 permission, so any user who can read the file may access it.
Explanation: Docker secrets are mounted using a tmpfs in-memory filesystem for security.
Explanation: In Docker Compose, secrets are declared in the `secrets` section.
Explanation: You assign secrets under the `secrets` key inside a service definition.
Explanation: Unlike environment variables, secrets are secure and not visible in container inspection output.
Explanation: Docker configs are used to manage non-sensitive configuration data like config files and settings.
Explanation: Docker configs are only available when running services in Docker Swarm mode.