Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions data/1_Orchestration/mount_volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`?
Expand Down
10 changes: 5 additions & 5 deletions data/2_Image_creation_management_registry/single_layer.yaml
Original file line number Diff line number Diff line change
@@ -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?
Expand Down