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
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ questions:
- { value: 'docker inspect --ip-only <container>', correct: false }
- { value: 'docker info --network <container>', correct: false }
- { value: 'docker logs --network-info <container>', correct: false }
- { value: 'docker inspect -f `{{ .NetworkSettings.IPAddress }}` <container>', correct: true }
- { value: "docker inspect -f '{{ .NetworkSettings.IPAddress }}' <container>", correct: true }
help: https://docs.docker.com/reference/cli/docker/inspect/

- uuid: 5e7f3841-bd3f-4e3e-b63b-73f4b7b9482e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ questions:
answers:
- { value: 'docker images --format "{{.ID}}: {{.Repository}}"', correct: true }
- { value: 'docker images --format "{{.Image}}: {{.Name}}"', correct: false }
- { value: 'docker images --template "ID={{.ID}}"', correct: false }
- { value: 'docker images --output "{{.Repository}}"', correct: false }
help: https://docs.docker.com/reference/cli/docker/image/ls/

- uuid: e54ad2de-5be4-4385-944b-d0c991d3f88e
Expand All @@ -60,15 +62,6 @@ questions:
- { value: '.Tags', correct: false }
help: https://docs.docker.com/reference/cli/docker/image/ls/#format-the-output---format

- uuid: 67917938-64c5-4a76-9152-871db7e60db8
question: What does the `--digests` flag show in `docker images`?
answers:
- { value: 'Untagged containers', correct: false }
- { value: 'Image file system structure', correct: false }
- { value: 'Content-addressable image identifiers', correct: true }
- { value: 'All intermediate layers', correct: false }
help: https://docs.docker.com/reference/cli/docker/image/ls/#list-image-digests---digests

- uuid: 4622a734-8c7e-4f91-bd8a-55e7fd31c43e
question: How can you list untagged (dangling) images?
answers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ questions:
- { value: 'To deploy containers in Kubernetes', correct: false }
- { value: 'To configure Docker Hub settings', correct: false }
- { value: 'To automate image creation using versioned instructions', correct: true }
- { value: 'To manage Docker daemon runtime options', correct: false }
help: https://docs.docker.com/engine/reference/builder/

- uuid: c174e319-85dc-47d2-bde5-fc9482c87212
Expand All @@ -13,6 +14,7 @@ questions:
- { value: 'It ensures repeatability and automation', correct: true }
- { value: 'It creates containers instead of images', correct: false }
- { value: 'It improves image compression', correct: false }
- { value: 'It bypasses the need for a base image', correct: false }
help: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

- uuid: 1d87b0ec-ecc7-42f2-88d5-5cd193449bfa
Expand All @@ -21,6 +23,7 @@ questions:
- { value: 'The orchestration of services across nodes', correct: false }
- { value: 'The logging behavior of running containers', correct: false }
- { value: 'The step-by-step instructions to build a Docker image', correct: true }
- { value: 'The network configuration of a Docker Swarm cluster', correct: false }
help: https://docs.docker.com/engine/reference/builder/

- uuid: e7f40412-2c7a-4bfa-9eac-7a5aa7e708f6
Expand All @@ -29,6 +32,7 @@ questions:
- { value: 'It deploys applications to production automatically', correct: false }
- { value: 'It enables consistent image builds across environments', correct: true }
- { value: 'It replaces the Docker daemon configuration', correct: false }
- { value: 'It eliminates the need for version control', correct: false }
help: https://docs.docker.com/build/ci/

- uuid: 3c5fbd4f-cf77-46a3-a8a4-063408c5f9b3
Expand All @@ -37,4 +41,5 @@ questions:
- { value: 'A volume definition file for persistent storage', correct: false }
- { value: 'A text file containing image build instructions', correct: true }
- { value: 'A binary image used to start containers', correct: false }
- { value: 'A YAML manifest for container orchestration', correct: false }
help: https://docs.docker.com/engine/reference/builder/