From 0d9a6faf8a9768a4dadf6d55071dd6293a33554e Mon Sep 17 00:00:00 2001 From: lacatoire Date: Sun, 8 Feb 2026 18:27:18 +0100 Subject: [PATCH] Fix 3 critical answer errors in quiz questions 1. push_an_image_to_a_registry.yaml (a1e36033): Docker Content Trust is disabled by default, not enabled. Must be activated via DOCKER_CONTENT_TRUST=1. 2. single_layer.yaml (5f3ac20f): Multi-stage builds do not squash to a single layer. Corrected answer to --squash and reformulated the question. 3. mount_volumes.yaml (7041ae89): The volume-subpath flag does not exist in Docker. Reformulated question to use correct --mount syntax. --- data/1_Orchestration/mount_volumes.yaml | 12 ++++++------ .../push_an_image_to_a_registry.yaml | 4 ++-- .../single_layer.yaml | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/data/1_Orchestration/mount_volumes.yaml b/data/1_Orchestration/mount_volumes.yaml index 02c7fe7..0789fe7 100644 --- a/data/1_Orchestration/mount_volumes.yaml +++ b/data/1_Orchestration/mount_volumes.yaml @@ -63,13 +63,13 @@ questions: help: https://docs.docker.com/storage/volumes/#when-to-use-volumes - uuid: 7041ae89-e857-4c8c-93a6-418d8e7cfb79 - question: Which flag must be used to mount a volume subdirectory? + question: Which flag syntax is used to mount a volume with specific options such as read-only access? answers: - - { value: 'subdir', correct: false } - - { value: 'volume-subpath', correct: true } - - { value: 'mount-dir', correct: false } - - { value: 'submount', correct: false } - help: https://docs.docker.com/storage/volumes/#mount-a-volume-subdirectory + - { value: '--volume-options ro', correct: false } + - { value: '--mount type=volume,source=myvolume,target=/data,readonly', correct: true } + - { value: '--mount-dir /data --readonly', correct: false } + - { value: '--volume-ro myvolume:/data', correct: false } + help: https://docs.docker.com/storage/volumes/#syntax - uuid: e1ff04e7-3483-4bc2-b8c2-f8a67e85b258 question: Which command creates a named volume that uses the NFS driver with custom mount options? diff --git a/data/2_Image_creation_management_registry/push_an_image_to_a_registry.yaml b/data/2_Image_creation_management_registry/push_an_image_to_a_registry.yaml index 0d42535..8a1896d 100644 --- a/data/2_Image_creation_management_registry/push_an_image_to_a_registry.yaml +++ b/data/2_Image_creation_management_registry/push_an_image_to_a_registry.yaml @@ -31,9 +31,9 @@ questions: answers: - { value: 'Docker always signs images', correct: false } - { value: 'Image signing is not supported', correct: false } - - { value: 'Docker Content Trust is enabled unless explicitly disabled', correct: true } + - { value: 'Docker Content Trust is disabled by default and must be enabled via DOCKER_CONTENT_TRUST=1', correct: true } - { value: 'Signing is enabled only with Docker EE', correct: false } - help: https://docs.docker.com/reference/cli/docker/image/push/#options + help: https://docs.docker.com/engine/security/trust/ - uuid: cb4190c0-dad0-4e15-b028-92f7e5be63e1 question: What happens when you press `CTRL-C` during a `docker image push`? diff --git a/data/2_Image_creation_management_registry/single_layer.yaml b/data/2_Image_creation_management_registry/single_layer.yaml index 30f15eb..d6af78e 100644 --- a/data/2_Image_creation_management_registry/single_layer.yaml +++ b/data/2_Image_creation_management_registry/single_layer.yaml @@ -1,12 +1,12 @@ questions: - uuid: 5f3ac20f-5ae4-40e5-9fa7-bcb3eaac4ea2 - question: Which technique allows reducing a Docker image to a single final useful layer? + question: Which Docker build option squashes all layers of an image into a single layer? answers: - - { value: 'Use the --squash option by default', correct: false } + - { value: 'docker build --flatten', correct: false } - { value: 'Push the image to a private registry', correct: false } - - { value: 'Use a multi-stage build', correct: true } - - { value: 'Enable content trust', correct: false } - help: https://docs.docker.com/develop/develop-images/multistage-build/ + - { value: 'docker build --squash', correct: true } + - { value: 'Use a multi-stage build', correct: false } + help: https://docs.docker.com/engine/reference/commandline/build/#squash-an-image - uuid: f2cbe39d-8e84-46d2-9434-d6b00b40c517 question: Which command creates an image with layers squashed (merged) together?