
Chapter 2 (Docker)
Authored by Kelly Gafford
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of a Dockerfile?
To define the steps for building a Docker image
To run a Docker container
To manage Docker networks
To store Docker volumes
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which Dockerfile instruction is used to specify the base image for a new image?
FROM
RUN
COPY
CMD
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the role of the RUN instruction in a Dockerfile?
To copy files into the image
To execute commands during the image build process
To set environment variables
To define the default command to run when a container starts
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which Dockerfile instruction is used to define the command that will be executed when a container starts from the image?
ENTRYPOINT
CMD
RUN
EXEC
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the .dockerignore file?
To specify which files and directories should be excluded from the build context
To define the build arguments for a Docker image
To set environment variables during the build process
To configure the network settings for a Docker container
6.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following are valid Dockerfile instructions?
ADD
ENV
LABEL
PUSH
7.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following statements about Docker image layers are true?
Each instruction in a Dockerfile creates a new layer in the image
Docker layers are read-only
Docker layers can be shared between multiple images
Docker layers can be modified after the image is built
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?